Answered
How to pass a struct between callbacks in GUI?
Valentino - just save the structure to *handles* in one callback so that the other callback has access to it. For example, if t...

11 years ago | 3

| accepted

Answered
Resize using GUI(Axis) not correct type...
JR - your first input to the <http://www.mathworks.com/help/images/ref/imresize.html imresize> function is the handle to the *ax...

11 years ago | 0

Answered
how can we control push button in matlab gui by keyboard instead of mouse click?
heisenberg - if you are using GUIDE to create your GUI, then you could assign a *WindowKeyPressFcn* callback to your figure (GUI...

11 years ago | 2

| accepted

Answered
How to get a GifPlayer to work on GUI's?
Jimmy - why not show your implementation of the code so that we can get an idea of what you have attempted and so provide some g...

11 years ago | 0

Answered
Hi I wrote the below program. when I run it,Matlab give me this error: Error using integral_thermalmoment (line 4) Not enough input arguments. How I can fix it. thank you
reza - the error message is telling you that you are not providing enough input arguments when trying to call the function *inte...

11 years ago | 0

Answered
Variable 'a' is undefined on some execution paths.
Saeed - what is *J*? If *J>5* then this error makes sense since you will only be defining *a_p* for *j=1,2,3,4,5*. You may wan...

11 years ago | 0

Answered
Extracting data from a given figure?
Cladio - what is the data that you used to generate the above function? Consider using <http://www.mathworks.com/help/matlab/re...

11 years ago | 0

| accepted

Answered
Use the diag command to find matrix and find dominant eigenvalues
Rather than copying and pasting your homework assignment into the above, why not include an attempt at solving it? The question...

11 years ago | 0

| accepted

Answered
How to access MATLAB_2014a.app/bin/maci64
John - what is preventing you from accessing this directory? On my Mac, I can access this directory from a terminal window as ...

11 years ago | 2

| accepted

Answered
Animating plotyy() using refreshdata()
Daniel - one of the examples from <http://www.mathworks.com/help/matlab/ref/plotyy.html plotyy> is as follows x = 0:0.01:20;...

11 years ago | 0

Answered
catch special characters with strcmp
Dario - I'm not sure if *strcmp* is the correct function to be using when checking to see if a character of one string belongs i...

11 years ago | 0

Answered
Dateformats in xls cells
ak - try providing a format string for your first example so that the function "knows" what you consider the year, day, month, e...

12 years ago | 0

| accepted

Answered
Adding element within vector without overwriting the existing value
Alice - short of defining a special class to handle this sort of insertion into a list (i.e a <http://www.mathworks.com/help/mat...

12 years ago | 0

Answered
Accessing data in cell arrays
Karim - what do you observe if you try the above two statements? The first C{1,2} = 2; initializes the cell array in the...

12 years ago | 1

| accepted

Answered
Loading in to the POPUP menu of GUI
Madhu - you can always reset the data in the popup menu by doing something like set(handles.popupmenu1,'String',{'option a',...

12 years ago | 1

Answered
Collecting a variable every two minutes
AA - is your timer started from within your GUI, or outside of it? If the former, then if you set up your timer in such a way t...

12 years ago | 2

| accepted

Answered
Inner matrix dimensions must agree error?
D'Monte - you are getting an error with (VC.*T) because *VC* is a 1x13 array and *T* is a 1x100 array so the code cannot...

12 years ago | 0

Answered
adding to handles while loop is running
Toke - you probably need to add a *pause* statement to you *while* loop so that it can be interrupted by the pressing of the pus...

12 years ago | 0

Answered
create a function for a cell array
shobhit - you don't say what is wrong with your above code (please do in the future) but if you wish to continue using the loop ...

12 years ago | 0

Answered
How to insert row by row data to excel?
Kasi - it appears that you are just writing your data to a comma-separated file and not an Excel file. Is this intentional? If...

12 years ago | 0

Answered
How to use a for loop for concatenated matrices. [counts, centers] = hist(X);
hello_world - *counters* is more likely a 2x20 matrix as *counts1*, *counts2*, *centers1*, and *centers2* are (probably) 1x10 ma...

12 years ago | 0

| accepted

Answered
please can someone help me with running this script
Leon - the error message is telling you have inserted some code before your function definition. Your above code is sig_...

12 years ago | 0

Answered
how to determine the number of spesific string in cell?
Rusian - you could first sort the contents of the cell array so that all identical elements follow each other x = {'ab','cd...

12 years ago | 0

Answered
Stuck on while loop, and cant get script to call out answer from function.
CokePQ - it seems that you are correctly able to call your *myBinToInt* function from your script (thought you don't need to inv...

12 years ago | 0

| accepted

Answered
Erratic behavior of Legend function
Priyanka - when you plot *X* vs *a* as plot(X,a,'r'); remember that *X* and *a* are 3x100 matrices and so you are in fact...

12 years ago | 0

Answered
subtracting a vector from cell array of same size
Shobhit - you could use <http://www.mathworks.com/help/matlab/ref/arrayfun.html arrayfun> to perform the subtraction on each ele...

12 years ago | 1

| accepted

Answered
using image in gui
Shaimaa - presumably your code (from above) will be placed in the callback function to a pushbutton on your GUI that has been cr...

12 years ago | 0

Answered
How do you add a header to a matrix?
Nicholas - if you just want to write a blank line (or header) before writing out your matrix, then using *fprintf('\n');* is the...

12 years ago | 1

Answered
fft Amplitude Spectrum Stem Plot from Fourier Series
Quizmaster - you don't have to read data from a text file in order to use the <http://www.mathworks.com/help/matlab/ref/stem.htm...

12 years ago | 0

| accepted

Answered
Question about disp([]) and returning lines
Josh - according to <http://www.mathworks.com/help/matlab/ref/disp.html disp>, you may be able to create the string that you wan...

12 years ago | 0

Load more