Answered
how to set a default value for the slider?
If your default value for the slider is 255, then why not just set this value in the text box. You could do this in the opening...

12 years ago | 0

Answered
How to stop autosave when closing matlab
Are you using a termination file when MATLAB exits? At the link <http://www.mathworks.com/help/matlab/ref/finish.html finish>, ...

12 years ago | 2

| accepted

Answered
Help with data from multiple files
James - you could try something like the following % get the list of files that match the filter files = dir('*_sphere.txt...

12 years ago | 0

Answered
I am new in MATLAB and trying to write this code on NEWTON-RAPHSON. Please help me to rectify the error in this code. I have shared the program with the error signal below. Its urgent. Any help will be highly appreciated.
Why do you have a *sym* at the line sym x(i+1)=x(i)-(f(x(i))/fdash(x(i))); Shouldn't this just be an evaluation of the st...

12 years ago | 1

| accepted

Answered
How to save data structures? (Currently get nonsense files)
The MATLAB function <http://www.mathworks.com/help/matlab/ref/save.html save> is saving the structure variable *S* to a binary f...

12 years ago | 0

Answered
Computer Vision - Undefined function 'detectSURFFeatures' for input arguments of type 'uint8'.
Deborah - in the Command Window, type *which detectSURFFeatures -all* to locate the function. If it doesn't exist, you will see...

12 years ago | 1

| accepted

Answered
Very basic problem with using isAlways
It could be that *isAlways* can't determine the validity of the inequalities. From <http://www.mathworks.com/help/symbolic/isalw...

12 years ago | 0

| accepted

Answered
Loading variables in GUI
If you want to allow the user to choose the file that you are to open, then you could use <http://www.mathworks.com/help/matlab/...

12 years ago | 0

| accepted

Answered
Undefined function when successfully opening .fig
The GUI figure files are not meant to be executed. While it will "launch" if you double-click on it, none of the initialization...

12 years ago | 0

Answered
How do I write a dynamic search path?
Katherine - in your code, what is *directory*? Presumably, it is an array with one or more files and folders, but from the way ...

12 years ago | 2

Answered
combine a number of files together? cat,vertcat and horzcat do not work...
Use <http://www.mathworks.com/help/matlab/ref/sprintf.html sprintf> to create the file name on each iteration allData = NaN(...

12 years ago | 1

| accepted

Answered
How to write a script for a go-to-goal differential robot using just a proportional controller?
Based on what I glanced at <http://en.wikipedia.org/wiki/Proportional_control Proportional Control> your code seems reasonable. ...

12 years ago | 0

| accepted

Answered
How to receive UDP packets in matlab?
That's a neat little app. If you have the *Instrument Control Toolbox*, you could probably use the <http://www.mathworks.com/he...

12 years ago | 2

| accepted

Answered
Disable Command Line During Point Selection
An alternative to *pause* may be to use a form of polling as described at <http://undocumentedmatlab.com/blog/waiting-for-asynch...

12 years ago | 1

| accepted

Answered
Hi When I try to install SPM8 I get the following error message:Initialising SPM...Error using fileparts Too many output arguments. Error in cfg_util>local_initapps (line 1217) [p n
According to <http://www.mathworks.com/help/matlab/ref/fileparts.html fileparts>, this function returns at most three output par...

12 years ago | 0

| accepted

Answered
How to Run a .fig file separately without using of it's .m file
The GUI figure file is not meant to be executed. Double-clicking on the MyGui.fig file will just cause the figure to open and a...

12 years ago | 0

| accepted

Answered
Remove some portion from a sentance...
Since the single quote appears at the end of the string, then just remove that last character urlStr = 'http://www1.interact...

12 years ago | 0

| accepted

Answered
Create new variable that recognizes changes in the code
Given the *A* and *B* from above (less the incomplete portions), you could iterate over each row of *A* and compare the second a...

12 years ago | 1

| accepted

Answered
how to work with the listbox?
What you can do is save layer data (so that layer specific data which is defined by the variables to the right of your GUI) to t...

12 years ago | 0

Answered
While running simulation, plot each curve with a different color
The problem is that the code is plotting all the data at each iteration, including that which was plotted at previous iterations...

12 years ago | 0

| accepted

Answered
how to break line in prompt text
Why not use a <http://www.mathworks.com/help/matlab/ref/listdlg.html listdlg> instead? It allows you to create a cell array of ...

12 years ago | 0

| accepted

Answered
Writing file in matlab with fprintf and dlmwrite in loop.
The problem is using the *fprintf* and *dlmwrite* together - each behaves differently when writing data to file. See <http://www...

12 years ago | 2

| accepted

Answered
Differential equation/trapezoid rule problem
Your *t* differs from that which is defined in the link that you provided. I think that you are supposed to use what you have d...

12 years ago | 0

Answered
Ho to combine two legend in the same axe ( GUI MATLAB)
If I try to run your code, it fails with the Error using legend>process_inputs (line 564) Invalid argument. Type 'help leg...

12 years ago | 0

| accepted

Answered
How do I read a file from todays date and previous date using .CSV file
If you want to start from the end of the list, comparing the last two lines, the second and third last, etc., then use a *for* l...

12 years ago | 0

| accepted

Answered
Match different sized cell arrays in Matlab
Maria - are there four or five columns in CONCELL? When you match on a column, do you copy over all but the first You could ...

12 years ago | 1

| accepted

Answered
How do I record data within a loop?
Kyle - without seeing your full code, especially where the *for* loop for the 50,100,etc. repeated duels, it is not easy to poin...

12 years ago | 1

Answered
Transfuring plots in GUI's
Chris - you can use the <http://www.mathworks.com/help/matlab/ref/allchild.html allchild> function to get a list of all children...

12 years ago | 0

| accepted

Answered
[GUI]How to set format for figure title
The figure title can be changed with the following lines of code h = figure; set(h,'NumberTitle','off') % remove...

12 years ago | 0

Answered
How to assign different colours to the "levels" of a cylinder
If you are trying to associate levels to colours, then with your 14 levels, you could define a 14x3 matrix where each row is a c...

12 years ago | 0

| accepted

Load more