Réponse apportée
How to save data from created guide?
What do you mean by 'always have access to it'? Do you mean actually 'always' or just for the duration of the GUI being open. ...

plus de 10 ans il y a | 0

| A accepté

Réponse apportée
Working With Very Large Array
Try looking into using a matfile doc matfile It allows you to work with a large data set from file rather than from memo...

plus de 10 ans il y a | 2

| A accepté

Réponse apportée
Push button in GUI
In the first button callback: handles.data = readData(...); guidata( hObject, handles ); In the second callback: ...

plus de 10 ans il y a | 0

Réponse apportée
logarithmic range colorbar imagesc
I would normally solve this problem simply by taking the logarithm of my data and plotting that if simply constraining the colou...

plus de 10 ans il y a | 0

Réponse apportée
"intersect" produces variable of class cast
I suspect you must have your own function called 'intersect' that produces this behaviour What is the result of typing w...

plus de 10 ans il y a | 0

Réponse apportée
How to shift zero frequency component in matlab?
doc fftshift

plus de 10 ans il y a | 0

Réponse apportée
For loop assignment problem
one(i,:)=s.(fields{i})(len-1,3:4); should work if I understand the problem correctly. Judging by your pre-sizing I assume ...

plus de 10 ans il y a | 0

| A accepté

Réponse apportée
Getting error Error using / Matrix dimensions must agree.
(N/(N2+N)) in your definition of X is causing the problem. You are trying to divide a scalar by a 1x1000 array. If yo...

plus de 10 ans il y a | 0

Réponse apportée
how to validate user input between 2 values?
validateattributes( number1, { 'numeric' }, { '>=', 1, '<=', 100 } ) will do the validation for you. (You can use 'integer'...

plus de 10 ans il y a | 0

Réponse apportée
Matlab GUI- Workspace to GUI display
Put them all in a struct and pass it in as an argument to the GUI. Then initialise the ui components from that. You will hav...

plus de 10 ans il y a | 0

Réponse apportée
How to control the content of a plot using a slider preferably without GUIDE
function sliderTest( ) hFig = figure; hText = uicontrol( hFig, 'Style', 'text', 'String', 5, 'Position', [100 20...

plus de 10 ans il y a | 0

Réponse apportée
how to define an axis in other figure to plot in it
figure; hAxes = gca; plot( hAxes,... ) allows you to plot on a different axes and is recommended anyway (giving an e...

plus de 10 ans il y a | 0

| A accepté

Réponse apportée
how can i call the seconde figure with a push buton in figure one
Just call it in the pushbutton callback exactly as you would if you did it from command line, by the name of the GUI

plus de 10 ans il y a | 0

| A accepté

Réponse apportée
How to delete a column of an array?
array = array(:,1:2); or array(:,3) = [];

plus de 10 ans il y a | 0

Réponse apportée
How to combine two cell arrays to corresponding elements?
C = cellfun( @(x,y) [x,y], A_aug, B_aug, 'UniformOutput', false ) should give the result you want. You can also do the equ...

plus de 10 ans il y a | 3

| A accepté

Réponse apportée
Write mathematical symbols on my curve
The 'Insert' menu of a figure allows you to insert various things (including a text box) on a plot manually rather than programm...

plus de 10 ans il y a | 0

Réponse apportée
Hi, the graph doesn't match my excel datas
You are just plotting y data leaving the default indexing for the x axis by the looks of it. plot( x, y ) or preferably ...

plus de 10 ans il y a | 0

Réponse apportée
Greek symbols in MATLAB GUI
hAxes = axes( 'Position', position, 'Visible', 'off' ); text( 0.1, 0.1, 'M_o=C(\omega_m)^2', 'Parent', hAxes ); will cre...

plus de 10 ans il y a | 0

Réponse apportée
Is there a way to hide a specific uitab ?
You can reparent the tab to empty as e.g. f = figure; tabgp = uitabgroup(f,'Position',[.05 .05 .3 .8]); tab1 = uitab(...

plus de 10 ans il y a | 6

| A accepté

Réponse apportée
How can I merge two array's?
{ A, B } will merge them into a cell array as two distinct cells [ A, num2cell( B ) ] will give you a 4-element cel...

plus de 10 ans il y a | 1

| A accepté

Réponse apportée
Kmeans works with uint16 data?
doc kmeans would give you the answer to this, which is exactly what I just did to provide the answer that No uint16 is not ...

plus de 10 ans il y a | 0

| A accepté

Réponse apportée
plotting graph help!
You need to use ./ to do point-wise division rather than matrix division ( / ). This will give you 100 Q values: Q...

plus de 10 ans il y a | 0

| A accepté

Réponse apportée
How to use relative path to use matlab file in another computer
The safest way is probably to use currentFile = mfilename( 'fullpath' ); which will give you the path of the currently e...

presque 11 ans il y a | 3

Réponse apportée
How to use input command?
massplanet = input( sprintf('What is the estimated mass of %s (kg)? ', name), 's');

presque 11 ans il y a | 0

| A accepté

Réponse apportée
without a initial data of uitable, the value will disappear after enter a value into a cell, why?
figure; t = uitable( 'Data', cell(3,4), 'ColumnEditable', true(1,4) ); seems to produce an empty table that you can enter v...

presque 11 ans il y a | 0

| A accepté

Réponse apportée
If statement with 2 matrices
Something like this ought to work, though it is untested off the top of my head: boundaryVals = B * C + ( 1 - B ) * D; ...

presque 11 ans il y a | 0

Réponse apportée
Why find doesn't work for some number?
Testing exact equality between double-precision data is un-safe in general. Due to the representation of these numbers a test f...

presque 11 ans il y a | 0

Réponse apportée
Why CellEditCallback of Uitable can't get data of the table in a function?
If by 'without the first row' you mean the first row of code, i.e. function mytable then that is because without that li...

presque 11 ans il y a | 0

| A accepté

Réponse apportée
How can I open an image in MATLAB GUI in a new window ? Please answer :)
Just put: figure; in front of your plotting instruction. Or if you want to be fussy like I am, something more like: ...

presque 11 ans il y a | 0

| A accepté

Réponse apportée
Trigger buttons from other pop-up menu/button in GUI
The 'enable' property of a uicontrol is usually used for this. If you really want to you can change the 'visible' property, but...

presque 11 ans il y a | 0

| A accepté

Charger plus