Answered
Problems with GUI Callback Error
Harneel - rather than pasting the m file in your question, just attach it to your question using the paperclip button. Or just ...

12 years ago | 0

Answered
help with while loop
Andrea - how is *ER* initialized? Since you are iterating until a certain condition is met (i.e. *ER<=0.001875*), your two func...

12 years ago | 0

Answered
Unable to install mrsim toolbox
Talluri - given the error message, this is probably the first time that you have tried to build a MEX file. Typically you would...

12 years ago | 0

Answered
Function to play sequential tones with frequencies as input arguments
Morgan - I'm guessing that the above code is the body of a function that has a variable number of inputs...that is why you are u...

12 years ago | 0

| accepted

Answered
Plot, graph a polynomial
Joseph - the error is Error using plot Conversion to double from cell is not possible. The resolution is to remove the ...

12 years ago | 0

Answered
How can I solve this problem?
I think that you have the right idea, it is just that your code can probably be simplified in order to make it work the way that...

12 years ago | 0

Answered
resuming and starting from new line in genetic algorithm after specific generations
Hamid - I don't think that I can give a valid recommendation because I don't know enough of what you are trying to do. *f* seem...

12 years ago | 0

Answered
What does this error mean?
The problem is the code is incorrectly defined for a *for* loop. If the intent is to iterate through each element of *data(:,1:...

12 years ago | 1

| accepted

Answered
Pressing "Okay" button after making selection returns to main program
Scott - when I run the above code, I observe the following error message when I press the *Let's Play* (or okay) button Erro...

12 years ago | 0

Answered
Using loops, print a table showing wind chill factors
Jarvan - if your function is to return a table (or matrix) of wind chill values using temperature and wind speed, then it seems ...

12 years ago | 1

| accepted

Answered
Error trying to turn on arduino
Zack - the error message is suggesting that you don't have a function named *arduino* that accepts a char/string input. In the ...

12 years ago | 0

| accepted

Answered
how save produced images in loop
Nadia - you are using backslashes in your string which is probably generating the following warnings Warning: Control Charac...

12 years ago | 1

| accepted

Answered
How do i change name of the x-axes made by plotyy?
Sunny - assuming that there are 12 ticks on your x-axis, you could replace these numbers with strings as set(AX,'XTicklabel'...

12 years ago | 0

Answered
Cells to csv files
Mekala - according to the documentation at <http://www.mathworks.com/help/matlab/ref/csvwrite.html csvwrite>, cell arrays are no...

12 years ago | 1

Answered
How do I make a text box in GUI that updates immediately when slider is moved?
Alexei - see the solution from <http://www.mathworks.com/matlabcentral/answers/153865-make-gui-slider-behave-like-ios-frame-scro...

12 years ago | 3

| accepted

Answered
Adding values to a table using a pushbutton
George - presumably the *add* pushbutton is on the second GUI and you need to transfer the data from the edit text box(es) from ...

12 years ago | 0

| accepted

Answered
Calling Python - C++ from Matlab
Simone - yes, if you have a simple *.py* file then you can execute it in MATLAB. For example, if your *helloWorld.py* file cont...

12 years ago | 0

Answered
How to keep plot window area of interest without drawing to the same plot?
Jens - consider using <http://www.mathworks.com/help/matlab/ref/linkaxes.html linkaxes> which will allow the axes on your differ...

12 years ago | 0

Answered
How can we optimize this code using vectorization?
Akash - if I understand your above code correctly, you may be able to use the <http://www.mathworks.com/help/matlab/ref/cumprod....

12 years ago | 0

Answered
I get this error: Attempted to access l(0); index must be a positive integer or logical.
Omar - the line of code that is causing the problem is dn =1/p.m*((p.m*p.g*cos(q))-(p.C*l)+(p.C*p.L0)+(p.m*l(Q)^2)) becau...

12 years ago | 1

Answered
call callback without mmouse
Amirhosein - if you are trying to simulate the pressing of the pushbutton on the GUI from outside of the GUI (say from another s...

12 years ago | 3

| accepted

Answered
Codegen with dynamic field names
Pepjin - why not just combine all of your (for example) *AX* fields of the *sys* struct into one three-dimensional field? In yo...

12 years ago | 1

| accepted

Answered
How do I make an if-statement execute only if the value is an integer?
Hayley - you could try using the <http://www.mathworks.com/help/matlab/ref/floor.html floor> or <http://www.mathworks.com/help/m...

12 years ago | 0

Answered
How to make movies in MATLAB?
Mark - use <http://www.mathworks.com/help/matlab/ref/imread.html imread> to read in the individual images. Depending upon the n...

12 years ago | 0

Answered
How do i declare an array for cell in Mex?
Hariprasad - it would be easier to point out the problems if you had included all of your code, because it is unclear what line ...

12 years ago | 0

Answered
calling one gui from another.
Another possibility is to do something similar to <http://www.mathworks.com/matlabcentral/answers/146215-pass-data-between-gui-s...

12 years ago | 0

Answered
store the data in dat file with loop function
David - first consider trying to create the data that you need. If *n* pieces of pipe are required then initialize your weights...

12 years ago | 0

| accepted

Answered
unexpected behavior with matlab.mixin.Heterogeneous
Scott - I think that you are encountering the different behaviours of using a *handle* class versus a *value* class. From <http...

12 years ago | 1

| accepted

Answered
for loops and if else for matrices
David - you won't need a nested *if* statement, just an *if* and an *elseif* - the first to to check to see if the pipe weight i...

12 years ago | 0

| accepted

Answered
Inserting options in plotFrontier function
I don't have the *Financial Toolbox*, but presumably the result of calling *plotFrontier* is a figure that you can manipulate af...

12 years ago | 1

| accepted

Load more