Answered
How do I used the program stickplot.m
Jenny - the function signature for *stickplot* is stickplot(tt,x,y,tlen,units,labels) where *tt* is an array of time elem...

10 years ago | 0

| accepted

Answered
matlab gui showing axis at the background
adnan - the *hold on* call in your pushbutton callback is causing the axes to appear within your GUI. According to <http://www....

10 years ago | 0

| accepted

Answered
Dynamically change folders within a folder using MATLAB
Damith - you can use the <http://www.mathworks.com/help/matlab/ref/dir.html dir> function to list the folder contents and iterat...

10 years ago | 0

| accepted

Answered
How can I select a graph by mouse clicking and delete it?
azim - here is a quick and rough way to do what I think that you want. It makes several assumptions which are hopefully valid fo...

10 years ago | 1

| accepted

Answered
convert values to string
Ingrid - if *labels* is your cell array of string labels and *groupValue* is your integer array of group values (or indices into...

10 years ago | 0

Answered
how do i correct this error?
The first line of your findFreqItemsets.m file includes text that is not commented out findFreqItemsets() generates frequent...

10 years ago | 0

| accepted

Answered
Pushbutton callback problem to update the colors in GUI. I want to update the background colors when the button is pushed and save the existing color values.
Akshay - in your m-file, just create a separate function that randomly assigns colours to your four axes. This function will be...

10 years ago | 1

| accepted

Answered
How to obtain total sum by group
Siying - yes, *accumarray* can be used to sum elements of the same group. For example, we can do groupSums = accumarray(gro...

10 years ago | 1

| accepted

Answered
Error while evaluating uicontrol Callback when using two buttons
Tan - I think that the error may be originating in the second push button callback where you assign fname = 'handles.fname'...

10 years ago | 1

| accepted

Answered
How to run the following code in parallel
Raja - is the error message Error using * Inner matrix dimensions must agree. Error in *** (line 29) f=p1+2*a*c*p2...

10 years ago | 0

Answered
color for surf 3d
Samer - what happens if you just set the *FaceColor* property to blue as h=surf(xImage,yImage,zImage,... 'CDat...

10 years ago | 0

Answered
problem in code voxel
samer - you are missing a couple of square brackets in the line of code that precede the *for* loop. Look closely at the line ...

10 years ago | 0

Answered
loop for parallel resestance
leyth - it would be helpful if you include the error message when posting your question. When I try to run your code, I observe...

10 years ago | 0

Answered
How do I delay a function ?
Thomas - you may want to consider using the <http://www.mathworks.com/help/matlab/ref/audioplayer.html audioplayer> object to pl...

10 years ago | 0

Answered
How to plot multiple boxes with x and y being names
Eric - there are probably several ways to do this. One such way is to use <http://www.mathworks.com/help/matlab/ref/fill.html f...

10 years ago | 0

| accepted

Answered
matlab plot in real time
jianlong - try using the <http://www.mathworks.com/help/matlab/ref/hold.html hold on> command to retain the current plot when ad...

10 years ago | 1

| accepted

Answered
How to Stop Fmincon from GUI
Ravi - I suspect that the example is only meant to provide an idea of how to do this given that you could have created your GUI ...

10 years ago | 0

| accepted

Answered
Can someone please give me the format on how to put this exactly in matlab? the math is correct! The answers are there
seymur - since the outputs from your above equations are in units of degrees, use <http://www.mathworks.com/help/matlab/ref/atan...

10 years ago | 0

Answered
Function that graphs equations
Krish - your *t* will be defined given the minimum, maximum, and step size. For example, you can create *t* as a linearly space...

10 years ago | 0

| accepted

Answered
alway get an error when i use a load command
Ray - if the two mat file are in the directory _/Volumes/MY PASSPORT/redhwan/Documents/MATLAB/2DimenstionalTestingGT20150907/Mea...

10 years ago | 0

Answered
alternating rotating and scaling of 6x6 'chessboard effect' of polygons
If you know the four vertices of the square (since using a chessboard) that you wish to draw, then you can use the MATLAB <http:...

10 years ago | 0

Answered
How to display GUI output into message box ?
Ikhwan - how many output parameters is _a lot_? You can use the <http://www.mathworks.com/help/matlab/ref/msgbox.html msgbox> t...

10 years ago | 1

Answered
GUI: OpeningFcn problem
Sébastien - GUIs cannot be run by double-clicking on the figure (.fig) file. They are only meant to be run from the GUIDE GUI e...

10 years ago | 0

| accepted

Answered
Hi, I am stuck on a point where the 's' value needs to be changed to 0.51 in the next generation (t+1) when Ns>100, otherwise it has to be default (0.5). Can you please help with this. Thanks in advance.
Neha - since *Ns* is defined to be Ns=numel(Na); then why not do something similar to what you have already if Ns ...

10 years ago | 0

Answered
How to loop through pushbuttons (=tiles in a maze) with a single callback?
Serena - I think that you are missing an *end* at the end of your first double *for* loop block that sets the colours of the pus...

10 years ago | 0

| accepted

Answered
Storing a forloop in a matrix
Melissa - initialize *Rows* outside of the *for* loop because you are just overwriting all those values from previous iterations...

10 years ago | 0

| accepted

Answered
How can I get a value from another m file ?
nero - return *title* as an output parameter from your call to the function function [y,title] = f1(x) Although, would th...

10 years ago | 0

Answered
I am writing a code for and HCCI combustion engine and need to plot the effect of changing equivalence ratio in the range 0.3<phi<0.8. I have it set up in a loop with hold on so that it combines the points onto one graph, but my plot shows up empty?
Jack - without having access to your data it is difficult to say why you are not seeing anything being shown in your two subplot...

10 years ago | 0

| accepted

Answered
What does it mean for THETA and RHO to be the same size?
Bella - the error message is telling you that the *theta* and *rho* inputs to the <http://www.mathworks.com/help/matlab/ref/pola...

10 years ago | 0

| accepted

Answered
Image file transfer from one GUI to another using setappdata and getappdata
Rupam - there are probably several different ways to do this, so here is one. Let's assume that you have two GUIs named *Gui1* ...

10 years ago | 0

| accepted

Load more