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

casi 11 años hace | 0

| aceptada

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

casi 11 años hace | 2

| aceptada

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

casi 11 años hace | 0

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

casi 11 años hace | 0

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

casi 11 años hace | 0

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

casi 11 años hace | 0

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

casi 11 años hace | 0

| aceptada

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

casi 11 años hace | 0

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

casi 11 años hace | 0

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

casi 11 años hace | 0

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

casi 11 años hace | 0

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

casi 11 años hace | 0

| aceptada

Respondida
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

casi 11 años hace | 0

| aceptada

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

casi 11 años hace | 0

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

casi 11 años hace | 3

| aceptada

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

casi 11 años hace | 0

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

casi 11 años hace | 0

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

casi 11 años hace | 0

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

casi 11 años hace | 6

| aceptada

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

casi 11 años hace | 1

| aceptada

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

casi 11 años hace | 0

| aceptada

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

casi 11 años hace | 0

| aceptada

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

casi 11 años hace | 3

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

casi 11 años hace | 0

| aceptada

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

casi 11 años hace | 0

| aceptada

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

casi 11 años hace | 0

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

casi 11 años hace | 0

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

casi 11 años hace | 0

| aceptada

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

casi 11 años hace | 0

| aceptada

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

casi 11 años hace | 0

| aceptada

Cargar más