Answered
radix 2 disspation in frequency
Zhao - I think the problem may be due to trying to calculate the even and odd terms in your inner *for* loop (perhaps to improve...

10 years ago | 1

| accepted

Answered
imwrite for changing file formats of more than one file?
Chris - <http://www.mathworks.com/help/matlab/ref/imwrite.html imwrite> does not return a parameter, so the _too many output par...

10 years ago | 1

| accepted

Answered
Finding the max value in a vector
Gabriel - according to <http://www.mathworks.com/help/matlab/ref/max.html#inputarg_A max input arguments>, a cell array is not a...

10 years ago | 0

Answered
How to plot this matrix?
Vidhan - what are the values for your predefined variables? If I randomly assign some numbers (to them) then I see two lines. ...

10 years ago | 0

| accepted

Answered
I am getting subscripted assignment dimension mismatch: on the line err(:,i)=abs(X-Xold);
Shyam - *err* has been initialized as a 1x50 array, *X* and *Xold* are 6x1 arrays and so the absolute of their difference is a 6...

10 years ago | 0

Answered
Loop with Bisection Method Error (for may not be aligned etc.)
Josh - _FOR may not be aligned with its matching end_ is a warning only and can be ignored for the moment. In fact, once you res...

10 years ago | 0

Answered
switching focus for keyboard input in a GUIDE created function
Jan Meyer - make sure that the *WindowKeyPressFcn* property of the figure has been assigned correctly for your GUI. Using GUIDE...

10 years ago | 0

| accepted

Answered
divide chain code to sub chain code
majed - I'm not sure if this is more efficient than what you have, but it does produce the answer that you are looking for (assu...

10 years ago | 0

Answered
How to convert all jpg images to gray and then save them in different file
iris - according to <http://www.mathworks.com/help/matlab/ref/rgb2gray.html rgb2gray> you would first need to read in the image,...

10 years ago | 4

| accepted

Answered
circle plot from (2,N) Matrix
Tina - please clarify how *theta* and *phi* are used. Do you have to colour (fill) the circle as red or just draw the perimeter...

10 years ago | 0

| accepted

Answered
Count the 'duration' of integer values appearing sequentially in a list (viterbi path)
Alexander - please clarify what the purpose of *b* is. If *K* is the number of possible integers (so 10) then *b* is a 10x1 arr...

10 years ago | 1

| accepted

Answered
Script to compute how many terms you need to approximate sin(20) = 0.912945 to six decimal digits
Michael - I think that you have the right idea with the above code, but the use of *n* is not quite correct (especially how it i...

10 years ago | 0

Answered
Fix the trace in the plot
sally - I suspect that if you are plotting something similar to plot(x,y) then some of your *x* values are out of order (...

10 years ago | 0

Answered
Rotation of an ellipse
Vlad - I couldn't quite get the ellipse to draw with the code that you have attached, so I modified it slightly to function...

10 years ago | 0

Answered
unable to plot the graph
Apurva - when I run your code, I observe the error Index exceeds matrix dimensions. because of the line plot(vds,rdsl...

10 years ago | 0

| accepted

Answered
How can I store 'n' random transfer functions in a 1-D array fashion? (n =60 for example)
HP - why not use a cell array to store the transfer functions or the handles to the functions? For example, you could do someth...

10 years ago | 0

Answered
Can anyone help me to reconvert im2uint16 back to image?
Arya - it seems that you are using the Java cryptography cipher class (see <https://docs.oracle.com/javase/7/docs/api/javax/cryp...

10 years ago | 0

Answered
I need help please
olfa - look closely at your *for* loop for i=3:1 Your indexing variable *i* begins at three and ends at one. I expect th...

10 years ago | 0

| accepted

Answered
Help to make code into a for loop
monkey_matlab - try creating a cell array of the three matrices *A1*, *A2* and *A3*. (A cell array is used since these three ma...

10 years ago | 1

| accepted

Answered
Code for Pig Dice game incorrect.
John - look closely at the condition for your *while* loop while scores(p) < 100; What is *p*? It is the indexing variab...

10 years ago | 0

Answered
I'm working on my VERY FIRST code ever. I'm attempting to make a simple GUI which asks for the users name, and verifies that it is correct. but I can't seem to use the input.
Chris - if *name_input* is the tag for your edit text box (where the user is supposed to type in his or her name), then in the s...

10 years ago | 0

Answered
Moving the data tip horizontally with arrow keys
Sven - you are right, the behaviour of the left and right arrow keys is unexpected (at least to me anyway). The documentation f...

10 years ago | 3

| accepted

Answered
How do I find the zeros of a filtered graph?
A - since you have all of the x data, *dis* (?), then you could use <http://www.mathworks.com/help/matlab/ref/sign.html sign> to...

10 years ago | 0

Answered
what's the diffeence between those two intsructions to tranform the RGB image to HSV one
bay - the difference is in the third step frame(:,:,3)=0; vs frame(:,:,3)=0.7; In the first case, the _value_ (or ...

10 years ago | 0

| accepted

Answered
How can i run the bash shell script in matlab
Farik - use <http://www.mathworks.com/help/matlab/ref/system.html system> to run your script. See <http://www.mathworks.com/mat...

10 years ago | 0

Answered
Slider GUI error with non-extreme values
Brian - if you examine the *SliderLocation* whenever you press the up or down arrow of the slider, you will notice that it is a ...

10 years ago | 0

| accepted

Answered
Plotting Graph that needs automated value for x-axis
Jeb - how do you determine the first and last value in the file? If you know both, then you could do something like firstVa...

10 years ago | 0

Answered
hai,its showing error as specify the error or matrix of the image ? please help me immediately amnot getting the output for this am trying from morning
venmal - the error message is being generated from this block of code if nargin<1 error('grs2rgb:missingImage','Specify th...

10 years ago | 0

Answered
two-dimensional Otsu's method
pramod - the error message is telling you that the code is trying to access an element within your matrix using an index that is...

10 years ago | 0

| accepted

Answered
How to save input main folder name as the output filename
Kanakaiah - if your (sub?) folder is named as folder = 'tool1'; and you want to incorporate into the filename, then you c...

10 years ago | 0

Load more