Answered
Processing of files from different subfolders and write new file to the same folder
Lasse - how does writing a prefix to each file cause a problem with using <http://www.mathworks.com/matlabcentral/fileexchange/1...

12 years ago | 0

Answered
How can I fix this program. I've never used MatLab, but I need to be able to input theta and get a y and x value for it.
Don - what is wrong with the code that it needs to be fixed? The *theta* input is a positive angle in radians. To get the *x* ...

12 years ago | 0

Answered
Symbol error using mex in Yosemite
Scott - I observed a similar error when I tried to run a Fortran-based MEX function that included some code to write data to the...

12 years ago | 0

| accepted

Answered
Saving MULTI-Dimensonal Structure Data: from Matalb to Mex Fortran INPUTS-
Rick - your code to get the time data from the structure depends only on *JJ* tmp = mxGetField(prhs(1),JJ,'Time') Why ar...

12 years ago | 1

| accepted

Answered
loop starting from a specific time
Rico - if a period is just one iteration of your *for* loop (so since your arrays have 101 elements, then there are 101 periods)...

12 years ago | 1

| accepted

Answered
Unable to open file "binaryeye.jpg" for writing. You may not have write permission.
Jia - are you sure that you have given the write permission to the correct folder where the image should be written to? Perhaps...

12 years ago | 8

| accepted

Answered
error in function with 2 variables
Jesper - as the error is originating from the anonymous function, it may be easier to replace it with a "regular" function so th...

12 years ago | 0

| accepted

Answered
Error-checking in a matrix
Salima - try stepping through your code (with the debugger) to see what is going wrong. Look at the first *if* condition if...

12 years ago | 0

| accepted

Answered
generate random upper string in function
David - your code, as written, just permutes the four characters of the input string so if your input is *abcd* you will never g...

12 years ago | 0

| accepted

Answered
why can“t i use some functions such as a "hanning" or a "blackman" window even some others like "imnoise" or" RGB2gray"? (i have the r2014a version)
Rodrigo - for functions like <http://www.mathworks.com/help/signal/ref/hann.html hanning> and <http://www.mathworks.com/help/sig...

12 years ago | 0

Answered
(SOLVED) Horzcat Dimensions error in joining .wav files?
James - you should concatenate your samples along the singleton dimension. Try the following [r1,c1] = size(sample1); [r2...

12 years ago | 1

Answered
Guide toolbar toggle button within another function
Christopher - use the *Value* property of the toggle button to determine if the toggle has been pressed or not. Try the followi...

12 years ago | 1

| accepted

Answered
How do I add a table in GUIDE
Joseph - you would add your "load table" code in the callback function of your push button. If you are using GUIDE to create yo...

12 years ago | 1

| accepted

Answered
Using Euler's Method in Matlab
David - the problem with line xdot(I+1)=xdot(I)+xddot*dt; is that the *xddot* is 1x10000001 vector rather than a scalar. ...

12 years ago | 1

| accepted

Answered
For loop only once
You have the correct idea but have to remember that you cannot compare floating precision numbers using the equality (or negatio...

12 years ago | 0

| accepted

Answered
error checking wont replace old input
David - your re-initialization of *vecchecker* in the *while* loop uses a different condition than the one outside of the *while...

12 years ago | 0

| accepted

Solved


Determine the Anti-diagonal of a Magic Square
Determine the anti-diagonal (crossing from top right to lower left) of a magic square of size n. Examples If n = 3 y =...

12 years ago

Answered
Error: Fsolve: Not enough input arguments
Robert - the error message is telling you that not enough input parameters are being supplied to your function *h* via *fsolve*....

12 years ago | 1

| accepted

Answered
m_mag2geo & m_geo2mag complain of "Attempt to reference field of non-structure array"
Neil - this error message is telling you that the code is treating a variable as if it were a structure with fields when in fact...

12 years ago | 0

| accepted

Answered
Problem with example code
David - which version of MATLAB are you using? The code that you are trying to use (from the given link) was developed with M...

12 years ago | 0

| accepted

Answered
Can't get Slider Step in GUI to move in step sizes that I want
Leonard - consider your line of code to set the step size 'SliderStep',[100*round(1/(max_threshhold + 1)),250*round(1/(max_t...

12 years ago | 1

| accepted

Answered
How to continue from same line using toggle button gui
Sagar - I think that you want to avoid putting a *while* loop in your callback, because what will happen is that on subsequent c...

12 years ago | 0

| accepted

Answered
genetic algorithm does not return best arguments
Cristina - depending upon your version of MATLAB, you could try using the *EliteCount* option which specifies how many members o...

12 years ago | 0

Answered
Animation in GUI matlab
Noorah - yes, you can show a kind of movie in a GUI that plays as soon as you launch it. Suppose that your GUI has a single axe...

12 years ago | 0

| accepted

Answered
Convert Matrix to Cell Arrays
Scott - try using <http://www.mathworks.com/help/matlab/ref/mat2cell.html mat2cell> to convert your matrix to a cell array. In ...

12 years ago | 0

Answered
sqrt and norm doesn't return exact value
Sam - see <http://www.mathworks.com/help/symbolic/performing-symbolic-computations.html Perform Symbolic Compuations> for some i...

12 years ago | 0

Answered
How do i save the state of my GUI and load the saved state again?
Rushane - what do you mean by _and it didn't work_? It is sometimes helpful to provide more information. Is there an error, an...

12 years ago | 2

| accepted

Answered
How to change color of a push button for the duration of its callback (a sound)?
Max - rather than using the *sound* function, consider using the <http://www.mathworks.com/help/matlab/ref/audioplayer.html audi...

12 years ago | 1

Answered
use multiple fonts in GUI pushbutton string
Thomas - one of those undocumented (and so unsupported) features of MATLAB is that you can embed HTML code in the *String* of yo...

12 years ago | 0

| accepted

Answered
GUI remains open while script runs even though close(fig1) is in place.
Jonathan - you haven't included the *uiresume* in your above code so it isn't clear how the "wait" is cancelled. If you had put...

12 years ago | 0

| accepted

Load more