Answered
How to make Duplicate values
Andhika - given your above example, you want to replicate each element in *W* for the number of times given in *Q*. So, for exa...

12 years ago | 1

Answered
Monthly average text file question
Consider using <http://www.mathworks.com/help/matlab/ref/readtable.html readtable> to read data from your file (rather than usin...

12 years ago | 0

Answered
Average Path (Bug Jump Problem)
Scott - my understanding of the homework assignment is that *A* will be a 15x15 matrix (since there are 15 nodes), and like you,...

12 years ago | 0

Answered
how can i plot a simple circle having radius 8000???
Mohini - there are a number of circle drawing functions on the <http://www.mathworks.com/matlabcentral/fileexchange/?s_tid=gn_ml...

12 years ago | 0

| accepted

Answered
Euler's Method for Second Order ODE
Phil - you are observing this error because you initialize *y* as y(1)=-1; only, so it is a 1x1 scalar. On the second it...

12 years ago | 0

Answered
Is there a way to initialise an array automatically inside while loop?
Abdulatif - if you just want to add some to an array at each iteration of a loop (in your case, a *while* loop), then you could ...

12 years ago | 0

| accepted

Answered
how to delete first row of pixel values?
Ravneet - if you want to delete just the first row of your image, then you could do something like the following myImage = i...

12 years ago | 1

Answered
question about togglebutton in gui
Alex - without knowing the contents of your code (in the *while* loop) I can only hypothesize that the problem may be that the c...

12 years ago | 0

| accepted

Answered
??? Error using ==> plot Invalid first data argument error
Mekala - please format the above code so that it is readable. Highlight the code and press the *{} Code* button. As well, pl...

12 years ago | 0

| accepted

Answered
GUI + Reference to non-existent field 'axes1'.
Mehdi - put a breakpoint at the first line of your *axes1_CreateFcn* function, then re-run your GUI. When the debugger pauses a...

12 years ago | 0

| accepted

Answered
How to sort strings by lenght?
Since you asked for suggestions, here is an almost solution. Rather than using a matrix of strings, convert this to a cell arra...

12 years ago | 0

Answered
Read a text file with a common name
If all file names follow this format (iteration number is preceded by *App.in.*), then just do something like inPrefix ...

12 years ago | 0

Answered
How do you extract the actual name of your input variable in a function?
Alex - it does make sense since you are passing a variable named *a* into your function *varname*. To get the variable name *te...

12 years ago | 0

| accepted

Answered
Problem with my cellular automata model
Naga - you may want to comment your code and revisit your use of the (for example) *time==1* as a condition, as it doesn't seem ...

12 years ago | 0

Answered
How to populate "pop-up" menu based on a variable in an edit box
Jonathan - how is the text box populated with the number of connected cameras? I think that whenever this text box is updated, ...

12 years ago | 2

| accepted

Answered
How to save full size image in axes 2?
Ahmad - since your code is showing the image *M* in your *axes2* as axes(handles.axes2); L=imread(handles.DummyImage); M...

12 years ago | 0

| accepted

Answered
error in fblinct where matrix dimensions do not agree??
Try putting a breakpoint at the line yD = sin(2*pi*t/T); of your *fblinct* function and re-run your code (you may want to...

12 years ago | 0

| accepted

Answered
question about pause function,and real time drawing
Alex - what you are working on sounds cool. When you call line(x, y, 'Color','k','LineWidth', 1); for the real time...

12 years ago | 0

| accepted

Answered
How do I force a compiled function to exit with a non-zero status yet allow the overall application to continue to run.
You haven't mentioned how you build/compile your compiled function executable, but if it is written in C/C++, then you may be ab...

12 years ago | 0

Answered
mexw64-files - MatCont package
Daniel - you are correct in thinking that the MEX files are built from C (or C++ or Fortran) code that you can then call from yo...

12 years ago | 0

Answered
Reading an element from Excel files
Elijah - try using <http://www.mathworks.com/help/matlab/ref/xlsread.html xlsread> to get the 200th element of the second column...

12 years ago | 0

Answered
Running a While Loop and Not Getting a Different Answer
Drake - the problem is that the *xold* and *yold* are always being reset to *x* and *y* in the first two lines of the *while* lo...

12 years ago | 0

| accepted

Answered
Double inputs must have integer values in the range of ASSUMEDTYPE.
Vetri - what is your intent behind using *bitcmp* in the following c_din = 1000.*int16(bitcmp(din,1)); Based on your comm...

12 years ago | 0

| accepted

Answered
Using a custom function in gui
Simone - try passing the axes handle as the last parameter to your function. Perhaps something like the following will do f...

12 years ago | 3

| accepted

Answered
setting the path in MATLAB
Nitin - you are changing the MATLAB search path when doing path('some_random_folder') Since you are specifying a new fol...

12 years ago | 0

| accepted

Answered
error: matrix dimension should agree plz help me
Which line of code is generating the error message? Try stepping through the code and verify that the matrix multiplications ma...

12 years ago | 0

Answered
MatLab code runs indefinitely since adding while loop
Cat - you should format your code so that it is readable. Just highlight the code portion and press the *{} Code* button. It...

12 years ago | 0

| accepted

Answered
VAR(1) process - In an assignment A(I) = B, the number of elements in B and I must be the same.
James - you should format your code so that it is kept distinct from your question and surrounding text. Just highlight the cod...

12 years ago | 0

| accepted

Answered
change Red level in RGB
jarvan - you are passing *flower* and *jpg* into your function as if they are variables rather than strings. Since you have not...

12 years ago | 1

| accepted

Answered
Newtons Form Trouble Shooting
Carter - your definitions of *x* and *y* are fine, but these are initializations that must occur in the base workspace and not b...

12 years ago | 0

Load more