답변 있음

problem getting correct indices of a matrix

Try this maybe? odif = find(o~=on); % element index: combos with O==O pdif = odif(find(p(odif)...

problem getting correct indices of a matrix

Try this maybe? odif = find(o~=on); % element index: combos with O==O pdif = odif(find(p(odif)...

8년 이하 전 | 0

| 수락됨

답변 있음

Inverse cosine of complex numbers

I know why! You were close, but you didn't quite replicate the definition in the documentation correctly. <</matlabcen...

Inverse cosine of complex numbers

I know why! You were close, but you didn't quite replicate the definition in the documentation correctly. <</matlabcen...

8년 이하 전 | 0

답변 있음

Error using meshgrid function.

The reason is this. Lets say I make two 500x500 matrices using the following. A = ones(500,500); B = 4*ones(500,500)...

Error using meshgrid function.

The reason is this. Lets say I make two 500x500 matrices using the following. A = ones(500,500); B = 4*ones(500,500)...

8년 이하 전 | 2

| 수락됨

답변 있음

Undefined function 'yout' for input arguments of type 'double'

*yout* is not a default Matlab function and hasn't been saved as a variable yet either. You, or a peer/coworker must have writte...

Undefined function 'yout' for input arguments of type 'double'

*yout* is not a default Matlab function and hasn't been saved as a variable yet either. You, or a peer/coworker must have writte...

8년 이하 전 | 0

답변 있음

How do I removed warning dialog popups?

Use find and replace and you can't possibly miss any... :) Ctrl+F Find: warndlg Replace: %warndlg There are also plenty...

How do I removed warning dialog popups?

Use find and replace and you can't possibly miss any... :) Ctrl+F Find: warndlg Replace: %warndlg There are also plenty...

8년 이하 전 | 0

답변 있음

I have trouble with cell arrays

Is this what you are looking for? a = {0 0 0 0}; b = {1 1 1 1}; c = {'1' '2' '3' '4'}; d = {'look,';'this';'has';'...

I have trouble with cell arrays

Is this what you are looking for? a = {0 0 0 0}; b = {1 1 1 1}; c = {'1' '2' '3' '4'}; d = {'look,';'this';'has';'...

8년 이하 전 | 0

답변 있음

How can I "draw" a 2D figure if I know all of its points?

*The greyed out text is all you should have to type to make what you want.* First assign the data to an 'array', or also call...

How can I "draw" a 2D figure if I know all of its points?

*The greyed out text is all you should have to type to make what you want.* First assign the data to an 'array', or also call...

8년 이하 전 | 8

| 수락됨

질문

title('string1_string2'): Stop automatic subscripts?

I have a code that goes through _many_ files and creates _many_ plots that I distribute to different users. The plots are automa...

8년 이하 전 | 답변 수: 3 | 0

답변 있음

Change plotyy axis properties

Click the plot that you want to change first. gca selects the most recently 'active' one. Clicking one will make it the 'acti...

Change plotyy axis properties

Click the plot that you want to change first. gca selects the most recently 'active' one. Clicking one will make it the 'acti...

8년 이하 전 | 0

답변 있음

Cell contents reference from a non-cell array object.

Don't use the curly brackets. That tells Matlab its a cell when its not. It is an array. Write like this dist= sqrt((X(i)-X...

Cell contents reference from a non-cell array object.

Don't use the curly brackets. That tells Matlab its a cell when its not. It is an array. Write like this dist= sqrt((X(i)-X...

8년 이하 전 | 6

| 수락됨

답변 있음

how to search values?

To list all variables in your workspace variables = who; With this, you can loop through every variable, and check if it...

how to search values?

To list all variables in your workspace variables = who; With this, you can loop through every variable, and check if it...

약 8년 전 | 1

답변 있음

How to use symbolic variables and functions (Syms) in a Simulink Matlab Function?

Example equation: abs(x+1) + abs(5x-1) = 6 How to solve (Here, I look for real solutions specifically): syms x real; ...

How to use symbolic variables and functions (Syms) in a Simulink Matlab Function?

Example equation: abs(x+1) + abs(5x-1) = 6 How to solve (Here, I look for real solutions specifically): syms x real; ...

약 8년 전 | 0

답변 있음

Area between baseline and data peak

The area under a curve is the definition of an integral. You will want to take the integral and subtract the baseline * baseline...

Area between baseline and data peak

The area under a curve is the definition of an integral. You will want to take the integral and subtract the baseline * baseline...

약 8년 전 | 0

답변 있음

How to plot figure for multiple values

When a figure is open, use hold on before plotting to keep putting more plots on the same figure

How to plot figure for multiple values

When a figure is open, use hold on before plotting to keep putting more plots on the same figure

약 8년 전 | 1

답변 있음

Attempt to reference field of non-structure array.

Accessing lp.lr is your problem. First make sure this is really what you meant to type. If it is, make sure lp.lr really exis...

Attempt to reference field of non-structure array.

Accessing lp.lr is your problem. First make sure this is really what you meant to type. If it is, make sure lp.lr really exis...

약 8년 전 | 0

| 수락됨

답변 있음

How can I get the rest of the function to quit once a sound file is done playing out?

If you use the *audioplayer* function you can use the stop function to close the image. StopFcn - Function to execute o...

How can I get the rest of the function to quit once a sound file is done playing out?

If you use the *audioplayer* function you can use the stop function to close the image. StopFcn - Function to execute o...

약 8년 전 | 0

답변 있음

FIND requires variable sizing

Have you tried what this guy did for a similar situation? http://stackoverflow.com/questions/19369205/matlab-error-find-requi...

FIND requires variable sizing

Have you tried what this guy did for a similar situation? http://stackoverflow.com/questions/19369205/matlab-error-find-requi...

약 8년 전 | 0

질문

Creating a simple contour plot / Heat map

I have edited this question to try to make it more clear: As an example, I have the following arrays: a = 1 ...

약 8년 전 | 답변 수: 1 | 0

답변 있음

How to calculate mean or variance in a string ?

You can convert to ascii equivalent, then find variance. jumble_text = 'alskdjbfalksjbdf' ascii_text = double(jumble_tex...

How to calculate mean or variance in a string ?

You can convert to ascii equivalent, then find variance. jumble_text = 'alskdjbfalksjbdf' ascii_text = double(jumble_tex...

약 8년 전 | 0

| 수락됨

답변 있음

Problem related to legend

I looked at your code and know exactly why your legend is doing this. Early on in your code, you used this command four times...

Problem related to legend

I looked at your code and know exactly why your legend is doing this. Early on in your code, you used this command four times...

약 8년 전 | 0

답변 있음

How to put vectors inside a matrix

You can make a 3d array where each slot from a 10x10 matrix has its own vector with the following syntax. matrix(1,1,:) = ...

How to put vectors inside a matrix

You can make a 3d array where each slot from a 10x10 matrix has its own vector with the following syntax. matrix(1,1,:) = ...

약 8년 전 | 0

| 수락됨

답변 있음

Why is MATLAB continuously asking me to activate when launched?

In my experience that has happened when its not able to locate the license file. You may already have it though. If you are w...

Why is MATLAB continuously asking me to activate when launched?

In my experience that has happened when its not able to locate the license file. You may already have it though. If you are w...

약 8년 전 | 0

답변 있음

sprintf('%d',x) prints out exponential notation instead of decimal notation

Use f instead of d for floating point notation will stop the scientific I believe. sprintf('%f',1.05*100) sprintf('%f'...

sprintf('%d',x) prints out exponential notation instead of decimal notation

Use f instead of d for floating point notation will stop the scientific I believe. sprintf('%f',1.05*100) sprintf('%f'...

약 8년 전 | 3

답변 있음

How to interpolate arrays for smoothening?

To interpolate an array, you need the following X: An array of data, lets call it your independant data. Y: An array of da...

How to interpolate arrays for smoothening?

To interpolate an array, you need the following X: An array of data, lets call it your independant data. Y: An array of da...

약 8년 전 | 0

답변 있음

Could I use a dynamic character or string in a for loop to call a variable with different name?

Use *eval* , Its really easy! Reads a string as a variable. Here is an example. Using the base 'var', I increment the variabl...

Could I use a dynamic character or string in a for loop to call a variable with different name?

Use *eval* , Its really easy! Reads a string as a variable. Here is an example. Using the base 'var', I increment the variabl...

약 8년 전 | 1

| 수락됨

답변 있음

What is changing in R2014b?

Release notes can be found here http://www.mathworks.com/help/matlab/release-notes.html They are not yet available for 201...

What is changing in R2014b?

Release notes can be found here http://www.mathworks.com/help/matlab/release-notes.html They are not yet available for 201...

약 8년 전 | 0

답변 있음

Find closest value in array

This finds the value in N which is closest to the V value I am calling. N = [1990 1998 2001 2004 2001] V = [2000 2011 ...

Find closest value in array

This finds the value in N which is closest to the V value I am calling. N = [1990 1998 2001 2004 2001] V = [2000 2011 ...

약 8년 전 | 28

답변 있음

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...

약 8년 전 | 1

| 수락됨

답변 있음

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...

약 8년 전 | 0

답변 있음

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...

약 8년 전 | 0