Answered
How to save a sequence of images as different file name in matlab
Sarat - since you are writing a file for each face, then use *currentFace* in your filename. filename = fullfile(CLASSROOM_F...

8 years ago | 0

| accepted

Answered
How to make a plot show all 24hours, one by one, on the x-axis
Luis - try using <https://www.mathworks.com/help/matlab/ref/datenum.html datenum> to generate an array of serial date numbers wh...

8 years ago | 1

Answered
How to write percentage sign into a txt file
Leon - try using two % fprintf(fid, '<td width="20%%">%s</td>\n', B{i,2}); See the special characters section from <https...

8 years ago | 3

| accepted

Answered
how can i add row to matrix
mohammed - you could try a = [a(1,:) ; a(3,:) ; a(2:3,:)] We use the square brackets [] to concatenate the set of row tog...

8 years ago | 2

| accepted

Answered
Please good people out there, i need help with how to vary a parameter in this code. In my case i want to vary TC from 180 to 220. How do i factor that into this code? Thank you very much for your help!!
Daniel - what are you incrementing TC by? 180, 181, 182, ..., 220? Or something else? Are you expecting to have a different plo...

8 years ago | 1

| accepted

Answered
how can replace randi instead randint?
mohamad - which ofdm_basic code are you referring to? Is this something found on the MATLAB FileExchange or something else? Fro...

8 years ago | 0

Answered
How to call a script in a GUIDE GUI file?
Arthur - you may need to show some or all of the convnet.m code so that we can get a good idea as to what it is doing. Presumab...

8 years ago | 0

Answered
How to acces a cell array used in one pushbutton from another pushbutton within a GUI?
gugu - are you using GUIDE, App Designer, or programatically creating your GUI? If using GUIDE, then you can save the cell arra...

8 years ago | 0

Answered
develop FFT real time in matlab
yogan - you could use the non-blocking *record* function instead and just assign a callback to the TimerFcn of your recorder. T...

8 years ago | 1

Answered
Very simple 'if' statement with == operator not working
Graham - you are incorrectly trying to use equality with floating point numbers. See the Compare Floating-Point Numbers section...

8 years ago | 1

Answered
Symbolic value assignment in GUIDE
Muhendisleksi - try using <https://www.mathworks.com/help/symbolic/char.html char> to convert the symbolic expression to a strin...

8 years ago | 0

| accepted

Answered
strings function not available on MATLAB 2013
Said - you could try something like stringArray = repmat({''},10,2) We use <https://www.mathworks.com/help/matlab/ref/rep...

8 years ago | 1

Answered
I am not getting correct graph from this code.What could be the problem
You're only plotting the data from the last iteration of your outer *for* loop and so are missing all the others from k=0.10...

8 years ago | 1

| accepted

Answered
Unbalanced brackets using interp, any ideas?
Mark - please review this line yy=interp(x,bed);[((jj);(xx);('cubic'))]; What is the intent here? Do you really meab ...

8 years ago | 0

Answered
Why am I not getting multiple graphs after iteration of the following equation, I am using two 'for' loops
naygarp - the problem is that you are overwriting your values in *FSS* found in the previous loop with those values in the curre...

8 years ago | 1

| accepted

Answered
what is the meaning of these two lines?
Saf - the *size* function returns the dimensions of the input parameter. In your case, if *P* is a 2x12 matrix so *size(P)* is ...

8 years ago | 0

| accepted

Answered
Error using + Matrix dimensions must agree.
Ibrahim - the error is with this line (and the ones that follow) S1= [1 2]' + s*randn(2,100); *s* is a scalar and so ...

8 years ago | 0

Answered
Storing lots of data with nested for loops
Michael - why not store your *deltaV* in a 100x100x100 array? You could then do the same for the other data that you want to ke...

8 years ago | 0

| accepted

Answered
How to create a plot with this values
David - just create an array of the efficiency values which you will update on each iteration of the loop. For example, incr...

8 years ago | 0

Answered
Scale any angle between [0, 180] and [0,-181] degrees
Andrew - suppose you have your angle whether it is 750 or 950. So long as the angle is greater than 180 degrees, then just subt...

8 years ago | 0

| accepted

Answered
I have a script that I run via a timer every 30 minutes -- how do I run this in background?
Robert - try creating a function that you can call from the command line. It will instantiate a timer and then periodically (wh...

8 years ago | 1

| accepted

Answered
Matlab GUI: problem with variables definition and multiple sliders
giacomo - so it is the *pushbutton9_Callback* that calls the *uigetvariables* function so that you can get the v1, v2, v3, and v...

8 years ago | 0

Answered
Having trouble running this code. Two errors with the script possibly could be a column of characters that can not be converted but not sure. Any help is appreciated. Thank You
Abdul - I think that you are trying to get the column names too late fclose(file_id); header = []; ct = 1; while leng...

8 years ago | 0

Answered
Storing outputs in a vector
Amanda - if you just want an array of all of the user's current character guesses, then just append your *G* to this array once ...

8 years ago | 0

Answered
How to update variable according to solutions?
PÜRLEN - your code is fixing *dt* to be one on each iteration of the *while* loop while abs(meu-eu)*0.5*dt > e t0=0; ...

8 years ago | 0

Answered
How can i display a uicontrol object at different locations?
Hi Jonas - I suppose that you could assign the same callback to both edit controls. This callback would update a variable that c...

8 years ago | 1

| accepted

Answered
about uicontrols and dialog
omid - please clarify how you are using this dialog. Also, why are you using a help dialog to terminate the program? You may ...

8 years ago | 0

Answered
Removing NaN row from matrix
Audun - by _vertical row_ do you mean a column? If you want to remove the first column from your matrix, then you could do some...

8 years ago | 0

Answered
Error in matlab function
Leonardo - if you are expecting a non-integer answer, then the fact that all variables are int32 will prevent this. If the vari...

8 years ago | 0

Answered
How do I save data from a matlab GUI table onto a text file when the user clicks a pushback button on the same gui?
Rahul - according to <https://www.mathworks.com/help/matlab/ref/writetable.html#inputarg_filename writetable>, you can specify t...

8 years ago | 0

Load more