Answered
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. ...

10 years ago | 0

| accepted

Answered
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...

10 years ago | 2

| accepted

Answered
Push button in GUI
In the first button callback: handles.data = readData(...); guidata( hObject, handles ); In the second callback: ...

10 years ago | 0

Answered
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...

10 years ago | 0

Answered
"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...

10 years ago | 0

Answered
How to shift zero frequency component in matlab?
doc fftshift

10 years ago | 0

Answered
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 ...

10 years ago | 0

| accepted

Answered
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...

10 years ago | 0

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

10 years ago | 0

Answered
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...

10 years ago | 0

Answered
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...

10 years ago | 0

Answered
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...

10 years ago | 0

| accepted

Answered
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

10 years ago | 0

| accepted

Answered
How to delete a column of an array?
array = array(:,1:2); or array(:,3) = [];

10 years ago | 0

Answered
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...

10 years ago | 3

| accepted

Answered
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...

10 years ago | 0

Answered
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 ...

10 years ago | 0

Answered
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...

10 years ago | 0

Answered
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(...

10 years ago | 6

| accepted

Answered
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...

10 years ago | 1

| accepted

Answered
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 ...

10 years ago | 0

| accepted

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

10 years ago | 0

| accepted

Answered
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...

10 years ago | 3

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

10 years ago | 0

| accepted

Answered
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...

10 years ago | 0

| accepted

Answered
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; ...

10 years ago | 0

Answered
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...

10 years ago | 0

Answered
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...

10 years ago | 0

| accepted

Answered
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: ...

10 years ago | 0

| accepted

Answered
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...

10 years ago | 0

| accepted

Load more