Respondida

how to create initial population of 100 random numbers

You can generate random number grids using the function *rand* rows = 3; columns = 3; Numbers = rand(rows,columns...

how to create initial population of 100 random numbers

You can generate random number grids using the function *rand* rows = 3; columns = 3; Numbers = rand(rows,columns...

casi 10 años hace | 1

| aceptada

Respondida

I got this error: <Undefined function 'findSpindles' for input arguments of type 'tsd'> using the function below, but I need a tds, how can I fix it?

Undefined function can often allude to a simple mistake of not having saved that function in the folder you are currently workin...

I got this error: <Undefined function 'findSpindles' for input arguments of type 'tsd'> using the function below, but I need a tds, how can I fix it?

Undefined function can often allude to a simple mistake of not having saved that function in the folder you are currently workin...

casi 10 años hace | 0

Respondida

Need help to write general syntax for matlab program for combining results of all inputs

Here is a sure-fire but not necessarily efficient way. This should combine the results of generating lots of 2x2 matrices that...

Need help to write general syntax for matlab program for combining results of all inputs

Here is a sure-fire but not necessarily efficient way. This should combine the results of generating lots of 2x2 matrices that...

casi 10 años hace | 0

Respondida

columns of a matrix

To call the entire contents of a column of a matrix, use matrix name and the colon operator (:) Para encontrar la columna de ...

columns of a matrix

To call the entire contents of a column of a matrix, use matrix name and the colon operator (:) Para encontrar la columna de ...

casi 10 años hace | 0

| aceptada

Respondida

index out of bounds

My assessment: It found no values where check was equal to zero, so there was no value for 'indx'. I don't have everything I ...

index out of bounds

My assessment: It found no values where check was equal to zero, so there was no value for 'indx'. I don't have everything I ...

casi 10 años hace | 0

Respondida

The example from internet doesn't work in matlab (ODE45 for solving equation system)

When you called it you left out an equals sign, to start. [T, XY] ode45('diffxy',0,10,[0 1 0]) %from this [T, ...

The example from internet doesn't work in matlab (ODE45 for solving equation system)

When you called it you left out an equals sign, to start. [T, XY] ode45('diffxy',0,10,[0 1 0]) %from this [T, ...

casi 10 años hace | 0

| aceptada

Respondida

Why is a straight line being plotted at zero, in addition to my desired plot?

You have the following line plot([0,180],[0,0],':k','LineWidth',2); This plots a line from 0 to 180, with values from 0 ...

Why is a straight line being plotted at zero, in addition to my desired plot?

You have the following line plot([0,180],[0,0],':k','LineWidth',2); This plots a line from 0 to 180, with values from 0 ...

casi 10 años hace | 0

Respondida

Obtain two different types of plots in same figure

You can use subplots like normal (yay!) I just tried it with a surface plot on the left and a line plot on the right. Here is ...

Obtain two different types of plots in same figure

You can use subplots like normal (yay!) I just tried it with a surface plot on the left and a line plot on the right. Here is ...

casi 10 años hace | 0

| aceptada

Respondida

How can I use the content of a variable to call another variable?

eval(currency) or eval('eur2usd') etc

How can I use the content of a variable to call another variable?

eval(currency) or eval('eur2usd') etc

casi 10 años hace | 0

| aceptada

Respondida

I keep getting this error:Index exceeds matrix dimensions.

'You cannot try to access part of an array that does not exist yet. >> A = [1,3]; >> A(3) _Index exceeds matrix d...

I keep getting this error:Index exceeds matrix dimensions.

'You cannot try to access part of an array that does not exist yet. >> A = [1,3]; >> A(3) _Index exceeds matrix d...

casi 10 años hace | 0

Respondida

Find index where value exceeds threshold

This should answer your problem! :-) idx = find(returns > X) Now if you have an MxN matrix, the idx returned is the ...

Find index where value exceeds threshold

This should answer your problem! :-) idx = find(returns > X) Now if you have an MxN matrix, the idx returned is the ...

casi 10 años hace | 1

Respondida

How to plot two matrices with multiple conditions on same graph?

Try using & instead of && Do you get the same problem?

How to plot two matrices with multiple conditions on same graph?

Try using & instead of && Do you get the same problem?

casi 10 años hace | 0

Respondida

uigetfile does not work in a loop

Hi, I had this same issue before. Sometimes matlab runs faster than figures can populate and it moves on to steps too quickly...

uigetfile does not work in a loop

Hi, I had this same issue before. Sometimes matlab runs faster than figures can populate and it moves on to steps too quickly...

casi 10 años hace | 0

Respondida

How to include more asterisks on a line in a plot

Hi Hail, I have an answer for oyu. Lets say you have a small sample of 10 points. time = [1 2 3 4 5 6 7 8 9 10] y...

How to include more asterisks on a line in a plot

Hi Hail, I have an answer for oyu. Lets say you have a small sample of 10 points. time = [1 2 3 4 5 6 7 8 9 10] y...

casi 10 años hace | 0

Respondida

i need change this to MATLAB CODE , its Necessary

See the code below for how to solve this problem. You can copy paste and it should work fine x0 = [1 1;1 1]; A = [32...

i need change this to MATLAB CODE , its Necessary

See the code below for how to solve this problem. You can copy paste and it should work fine x0 = [1 1;1 1]; A = [32...

casi 10 años hace | 1

Respondida

How can i write this in matlab?

Newton's Method is a very elementary technique, and I strongly recommend you try to learn about it and how it works. If you l...

How can i write this in matlab?

Newton's Method is a very elementary technique, and I strongly recommend you try to learn about it and how it works. If you l...

casi 10 años hace | 0

Respondida

Display precision vs actual precision

To round to the hundredths place X_rounded_to_hundredth = round(X*100)/100 Matlab still stores '0's after though. Not su...

Display precision vs actual precision

To round to the hundredths place X_rounded_to_hundredth = round(X*100)/100 Matlab still stores '0's after though. Not su...

casi 10 años hace | 1

Respondida

How can I approximate a certain section of a vector to remove noise?

A easy solution is to either use polyfit or take a moving line average of your data, but you lose some resolution. Try ...

How can I approximate a certain section of a vector to remove noise?

A easy solution is to either use polyfit or take a moving line average of your data, but you lose some resolution. Try ...

casi 10 años hace | 0

Respondida

Difference in matrix sizes

Clear your variables and try again and see if it still happens. Doesn't happen for me. x = 1:2:10 <</matlabcentral/...

Difference in matrix sizes

Clear your variables and try again and see if it still happens. Doesn't happen for me. x = 1:2:10 <</matlabcentral/...

casi 10 años hace | 0

Respondida

how to send me an email from matlab running on another computer?

Have the other computer use sendmail? *sendmail* *(recipients,subject,message)* sends an email included the specified message...

how to send me an email from matlab running on another computer?

Have the other computer use sendmail? *sendmail* *(recipients,subject,message)* sends an email included the specified message...

casi 10 años hace | 0

Respondida

Multiply mutiple numbers by 1.66666666666667

Are the numbers stored in an array? If they are, say they are stored in an array called "MyNumbers", you can type Solut...

Multiply mutiple numbers by 1.66666666666667

Are the numbers stored in an array? If they are, say they are stored in an array called "MyNumbers", you can type Solut...

casi 10 años hace | 0

Respondida

Compute average of a column in a cell without considering NaN values

Hi Maria, Here is a rough example of how to get the mean value for EVERY column gathered in your matrix. Its definitely not t...

Compute average of a column in a cell without considering NaN values

Hi Maria, Here is a rough example of how to get the mean value for EVERY column gathered in your matrix. Its definitely not t...

casi 10 años hace | 0

Respondida

How to create a delayed version of a cosine signal?

Your second cosine function definitely IS shifting. Its just that you are shifting it over exactly 5 periods, so it lies on top ...

How to create a delayed version of a cosine signal?

Your second cosine function definitely IS shifting. Its just that you are shifting it over exactly 5 periods, so it lies on top ...

casi 10 años hace | 1

Respondida

How can I avoid having to press 'Enter' (or any keyboard key) to return text in an edit box?

Just throwing out ideas. I'm assuming Dictation is a speech-to-text 1) Try using a timer? Not sure what your application is. ...

How can I avoid having to press 'Enter' (or any keyboard key) to return text in an edit box?

Just throwing out ideas. I'm assuming Dictation is a speech-to-text 1) Try using a timer? Not sure what your application is. ...

casi 10 años hace | 0

Pregunta

Easy textscan question. What is this input?

I have inherited a script with many textscan functions like the one below textscan(fid, '%*s %*s %f\n\r',1,'HeaderLines',19...

casi 10 años hace | 1 respuesta | 0

Respondida

In matlab gui, I have following code to load an image. I want to change it into user define function. is it possible and how?

Make a new function in the editor and I believe you can literally save this as loadmyimage.m (you can change the name to whateve...

In matlab gui, I have following code to load an image. I want to change it into user define function. is it possible and how?

Make a new function in the editor and I believe you can literally save this as loadmyimage.m (you can change the name to whateve...

casi 10 años hace | 0

Pregunta

Radio Buttons - Where can I find documentation?

I am trying to use GUIDE for various things. After not having used it for over a year, I can't believe the simple things that I ...

casi 10 años hace | 1 respuesta | 0

Respondida

How can I deploy a listbox from a pushbutton in a GUI?

listdlg('ListString',S) creates a modal dialog box which allows you to select a string or multiple strings from a list. ...

How can I deploy a listbox from a pushbutton in a GUI?

listdlg('ListString',S) creates a modal dialog box which allows you to select a string or multiple strings from a list. ...

casi 10 años hace | 0

| aceptada

Pregunta

Why does str2num truncate my number so early?

When I try to convert from string to number, I lose precision? whos test_str Name Size Bytes...

casi 10 años hace | 2 respuestas | 0

Pregunta

Brainstorm: Why would my function stop?

The code is rather tedious, but at the very end of and inside of "Function A", I call another function, "Function B" For some...

casi 11 años hace | 1 respuesta | 0