Answered
Time function. Execute a script every X seconds
G - since the timer callback (that function that you wish to execute every sixty seconds) is a function, then you need to assign...

10 years ago | 0

| accepted

Answered
Hi,,is there anyone who could tell me how do I use a loop control statement in matlab? or how do I use iterative loops in matlab?
nafila - see <http://www.mathworks.com/help/matlab/matlab_prog/loop-control-statements.html loop control statements> for some ex...

10 years ago | 0

| accepted

Answered
How to change to nan values in one matrix based on another logical matrix?
Ekaterina - if you want those values in the first matrix to be set to NaN if the corresponding value in the second matrix is zer...

10 years ago | 2

| accepted

Answered
Using WindowButtonDownFcn callback to track mouse moves in figure
Luc - the correct signature for this function would be function ButtonDown(hObject, eventdata) since you are not supplyin...

10 years ago | 0

Answered
GUI - Saving multiple files to a pre-specified folder
Ellis - <http://www.mathworks.com/help/matlab/ref/imwrite.html imwrite> requires (at least) two inputs: the image data and the f...

10 years ago | 0

Answered
GUI - Saving image to pre specified folder
Ellis - since you are saving the output directory to *handles.outDir* then you will need to use this in your call to *imwrite*. ...

10 years ago | 0

Answered
How to edit menus from Menu Bar?
adi - your question title asks _how to edit menus from Menu Bar_ but your question body seems to suggest that you have already c...

10 years ago | 0

Answered
Trying to Import Excel Data using GUIDE push button
Tessa - use <http://www.mathworks.com/help/matlab/ref/fullfile.html fullfile> rather than *strcat* to create the full file name ...

10 years ago | 1

| accepted

Answered
Is it not possible to extract a function from code in MATLAB?
Martin - I suspect that it is possible for you to write a MATLAB script that will refactor your Java code so long as you define ...

10 years ago | 0

Answered
Saving cell array data from uitable using 'save'
Jason - since *inputdata* is a cell array, I suspect that you are observing the following error Warning: Attempt to write an...

10 years ago | 0

| accepted

Answered
Update variable and save previous values of an edit box each time i hit a button
antoine - rather than saving your updated *Nodes* variable to the base workspace, why don't you just save it to the *handles* st...

10 years ago | 1

| accepted

Answered
Question regarding function using radiobutton status
Greg - consider placing your three radio buttons in a button group panel and assigning a *SelectionChangeFcn* callback to this p...

10 years ago | 0

| accepted

Answered
How do I interrupt a while loop with recursive, interrupting callback of checkbox in GUI
Peter - perhaps consider not using a *while* loop. The purpose of the loop seems only to update your two arrays of x and y coor...

10 years ago | 1

| accepted

Answered
How to stop a music when you close a window
Emmanuelle - I suspect that you are using <http://www.mathworks.com/help/matlab/ref/sound.html sound> to play your audio file. ...

10 years ago | 0

| accepted

Answered
Storing Matrices from a for loop
M - why can't you use a cell array to store the images? myImages = cell(9,1); for k=1:9 I=sprintf('',k); % is this s...

10 years ago | 0

| accepted

Answered
Error when using integral function on exponential integration
Athul - the error message is function = @(x) (exp(x)/x); Error: Function definitions are not permitted in this context. ...

10 years ago | 1

| accepted

Answered
Legend appears at wrong place using GUIDE
Eleonora - when I try to run your above code, I observe an error with *legend* due to the *parent* property. Is something new (...

10 years ago | 0

Answered
How to call popup menu data in push button?
adi - I am assuming that you are using GUIDE to create your GUI (given the *hObject* reference in the above code). If that is t...

10 years ago | 0

Answered
Not enough input errror
laurae1234 - how are you calling this function? Given the signature, function [ x ] = cubicroots( a, b, c, d ) you ne...

10 years ago | 0

Answered
Using mex does not work but the link it directs me doesn't exist
Brando - the above link brings you to the "System Requirements and Supported Compilers" page. From there you need to select the...

10 years ago | 0

Answered
How can I deactivate the key board selection on the list of a pop-up menu list button?
Anne - see Jan's answer at <http://www.mathworks.com/matlabcentral/answers/15426-give-focus-to-gui-window>. You may be able to ...

10 years ago | 3

| accepted

Answered
Using ROIPOLY in a GUI help!
Ellis - save the variables to the *handles* structure as function pushbutton4_Callback(hObject, eventdata, handles) filena...

10 years ago | 0

Answered
how to display output of .m file in GUI --in axes
pooja - without knowing how *Project2* is written and how it is trying to display data (image, plot, etc.) then it will be diffi...

10 years ago | 0

Answered
How use continuous slider inside the script
mohamadreza - see <http://www.mathworks.com/matlabcentral/answers/153278-discretizing-matlab-slider-gui> which discusses how you...

10 years ago | 0

Answered
How to adjust the column width to the length of the data
Alvindra - you can manually set the pixel size for each column with the following line of code set(handles.uitable1,'ColumnW...

10 years ago | 2

| accepted

Answered
Why the result is Ljava.lang.string after i select multiple images & store the to MySql?
Alvindra - unfortunately, I can't run your code (I observe errors as soon as I run launch the GUI). I think the problem is that...

10 years ago | 0

| accepted

Answered
record audio and get data in real time
dz - a couple of things to note. You don't need to declare some of your variables as global if you <http://www.mathworks.com/he...

10 years ago | 0

| accepted

Answered
Matlab: Nested PDEG functions
Soheil - you have posted more code than you should have to your question. As such, that is likely to discourage people from atte...

10 years ago | 2

Answered
time between many keyPressFcn actions
David - I would discourage you from using global variables. Instead, use the *handles* structure to store your user-defined dat...

10 years ago | 0

Answered
How to use value entered in one edit text in another one?
kh - you say that you have tagged your edit text fields as *aa*, *bb*, and *cc*. If this is true, then your *handles* structure...

10 years ago | 0

Load more