답변 있음

How to plot a quadratic equation?

Hello, If you have a newer release of Matlab (I believe R2016b), you can use the new <https://www.mathworks.com/help/matlab/r...

How to plot a quadratic equation?

Hello, If you have a newer release of Matlab (I believe R2016b), you can use the new <https://www.mathworks.com/help/matlab/r...

7년 초과 전 | 4

| 수락됨

답변 있음

Find the euclidean distance between elements of two matrices, one element of first one from all elements of the second one.

Hello, You could do this using the distance formula, or the built in <https://www.mathworks.com/help/stats/pdist2.html pdist2...

Find the euclidean distance between elements of two matrices, one element of first one from all elements of the second one.

Hello, You could do this using the distance formula, or the built in <https://www.mathworks.com/help/stats/pdist2.html pdist2...

7년 초과 전 | 2

| 수락됨

답변 있음

how to add multiple y-axis point on my plot?

Hello, To have two different y-axis (on left and right sides), you can use one of two functions depending on which MATLAB rel...

how to add multiple y-axis point on my plot?

Hello, To have two different y-axis (on left and right sides), you can use one of two functions depending on which MATLAB rel...

7년 초과 전 | 0

답변 있음

change equal values in a column to nan

Hello, Try this: % Given matrix A for i = 1:size(A,2) % go through each column for j = 2:size(A,1) % through el...

change equal values in a column to nan

Hello, Try this: % Given matrix A for i = 1:size(A,2) % go through each column for j = 2:size(A,1) % through el...

7년 초과 전 | 1

| 수락됨

제출됨

Pacman (with a twist)!

This is a play off Pacman - type help Macpan to see details.

7년 초과 전 | 다운로드 수: 3 |

질문

How to Edit File Information in MATLAB File Exchange?

Hello, After briefly searching for a method, I was unable to find a way to edit the file information that goes along with a f...

7년 초과 전 | 답변 수: 2 | 0

답변 있음

Hi Guys I need help. I need to get user input of a postfix expression and then evaluate the expression. But, I am having trouble in storing the postfix expression in a variable and then to read it by one character at a time.

Hello, If I was to solve this problem and I had, a = '123*+'; I would parse the data as follows (perhaps think of a b...

Hi Guys I need help. I need to get user input of a postfix expression and then evaluate the expression. But, I am having trouble in storing the postfix expression in a variable and then to read it by one character at a time.

Hello, If I was to solve this problem and I had, a = '123*+'; I would parse the data as follows (perhaps think of a b...

7년 초과 전 | 1

| 수락됨

답변 있음

How do I find only the small peaks in the signal?

Hello, I would recommend using simple high and low pass filters to acquire the smaller peaks. In other words, filter out d...

How do I find only the small peaks in the signal?

Hello, I would recommend using simple high and low pass filters to acquire the smaller peaks. In other words, filter out d...

7년 초과 전 | 1

답변 있음

Error when using ode45 command,"returns a vector of length 11, but the length of initial conditions vector is 1."

Hello, The way the ode45 command works (as I'm sure you know) is that given a state vector, in your case w, you provide a fun...

Error when using ode45 command,"returns a vector of length 11, but the length of initial conditions vector is 1."

Hello, The way the ode45 command works (as I'm sure you know) is that given a state vector, in your case w, you provide a fun...

7년 초과 전 | 1

| 수락됨

답변 있음

How to rotate points on 2D coordinate systems

Hello, You can rotate your points with a <https://en.wikipedia.org/wiki/Rotation_matrix rotation matrix>: Here's a simple ...

How to rotate points on 2D coordinate systems

Hello, You can rotate your points with a <https://en.wikipedia.org/wiki/Rotation_matrix rotation matrix>: Here's a simple ...

7년 초과 전 | 9

| 수락됨

답변 있음

How to insert NaN at the end of matrix (.mat)

Hello, Would it be sufficient to: load('your_file.mat') Matrix_Name = [Matrix_Name; NaN NaN]; % Get rid of extra...

How to insert NaN at the end of matrix (.mat)

Hello, Would it be sufficient to: load('your_file.mat') Matrix_Name = [Matrix_Name; NaN NaN]; % Get rid of extra...

거의 8년 전 | 0

| 수락됨

답변 있음

How can I plot the square root of normally distributed data?

Hello, The problem is that transforming data with a square root does not necessarily maintain the normal distribution, this i...

How can I plot the square root of normally distributed data?

Hello, The problem is that transforming data with a square root does not necessarily maintain the normal distribution, this i...

거의 8년 전 | 2

| 수락됨

답변 있음

Trouble with a correlation analysis code

Hello, I downloaded your data and ran your code and it didn't encounter any errors for me (rows was a logical vector so rows=...

Trouble with a correlation analysis code

Hello, I downloaded your data and ran your code and it didn't encounter any errors for me (rows was a logical vector so rows=...

거의 8년 전 | 0

| 수락됨

답변 있음

Multiple line and bar with two y axis.

Hello, Stealing entirely from Jan Simon's comment, you can use the <https://www.mathworks.com/help/matlab/ref/yyaxis.html#mor...

Multiple line and bar with two y axis.

Hello, Stealing entirely from Jan Simon's comment, you can use the <https://www.mathworks.com/help/matlab/ref/yyaxis.html#mor...

거의 8년 전 | 0

답변 있음

How to plot the equation |x|+|y|+|z|=1 ?

Hello, I'm certain there's a better way to do this, such as with surf, but here is a solution. If you consider the equatio...

How to plot the equation |x|+|y|+|z|=1 ?

Hello, I'm certain there's a better way to do this, such as with surf, but here is a solution. If you consider the equatio...

거의 8년 전 | 0

답변 있음

Matrix manipulation and using the sum command

Hello, Would, A(2,2) = 0; A(2,2) = sum(A(:)); or A(2,2) = sum(A(:)) - A(2,2); suffice? You could also gen...

Matrix manipulation and using the sum command

Hello, Would, A(2,2) = 0; A(2,2) = sum(A(:)); or A(2,2) = sum(A(:)) - A(2,2); suffice? You could also gen...

거의 8년 전 | 1

답변 있음

Replacing values in a cell with NaN

Hello, Your code works for me, although I would recommend using for i = 1:size(Data,1) rather than for i = 1:len...

Replacing values in a cell with NaN

Hello, Your code works for me, although I would recommend using for i = 1:size(Data,1) rather than for i = 1:len...

거의 8년 전 | 1

| 수락됨

답변 있음

how to divide an image into 16x16 non overlapping blocks

Hello, Assuming your image has size m x n where m and n are multiples of 16: YourImage = im2double(YourImage); [m,n] ...

how to divide an image into 16x16 non overlapping blocks

Hello, Assuming your image has size m x n where m and n are multiples of 16: YourImage = im2double(YourImage); [m,n] ...

거의 8년 전 | 2

| 수락됨

답변 있음

I have I and Q data in time but I need to plot them in frequency

Hello, Your solution lies within your tags. The Fourier transform is a way to change a signal from its original domain to a r...

I have I and Q data in time but I need to plot them in frequency

Hello, Your solution lies within your tags. The Fourier transform is a way to change a signal from its original domain to a r...

거의 8년 전 | 0

답변 있음

Given standard deviation of two of the variables in a function, calculate the standard deviation of the output

Hello, Assuming x and y have the same mean (among other things), I'd say about 14.61%. I simulated it as follows: for i ...

Given standard deviation of two of the variables in a function, calculate the standard deviation of the output

Hello, Assuming x and y have the same mean (among other things), I'd say about 14.61%. I simulated it as follows: for i ...

거의 8년 전 | 1

답변 있음

Is it possible to apply common axes values to existing figures?

Hello, You can use: axis([x1 x2 y1 y2]) where x1 specifies the left side axis limit of the x-axis, x2 the right side ...

Is it possible to apply common axes values to existing figures?

Hello, You can use: axis([x1 x2 y1 y2]) where x1 specifies the left side axis limit of the x-axis, x2 the right side ...

거의 8년 전 | 0

| 수락됨

답변 있음

why do get an error when I use the help function?

Hello, It seems that you have a script/function named help.m in the directory. You should rename this to something unique,...

why do get an error when I use the help function?

Hello, It seems that you have a script/function named help.m in the directory. You should rename this to something unique,...

거의 8년 전 | 1

| 수락됨

답변 있음

How to Read a file with unknown name

Hello, You can do so like this (assuming only one csv file): A = dir('*.csv'); B = csvread(A.name); Hope this he...

How to Read a file with unknown name

Hello, You can do so like this (assuming only one csv file): A = dir('*.csv'); B = csvread(A.name); Hope this he...

거의 8년 전 | 1

| 수락됨

답변 있음

how to add 3 matrices with one dimension same for all and other dimension different?

Hello, I only tested this with your example and it worked, but I think it's generally correct: % % Strangely adding mat...

how to add 3 matrices with one dimension same for all and other dimension different?

Hello, I only tested this with your example and it worked, but I think it's generally correct: % % Strangely adding mat...

거의 8년 전 | 1

답변 있음

How to orient a text arrow

Hello, You can specify the start and end of the arrow, as well as the type of arrow using an <https://www.mathworks.com/help/...

How to orient a text arrow

Hello, You can specify the start and end of the arrow, as well as the type of arrow using an <https://www.mathworks.com/help/...

거의 8년 전 | 0

| 수락됨

답변 있음

Shade a wedge/portion of a compass or polar plot?

Hello, I've found <https://www.mathworks.com/help/matlab/ref/fill.html fill> to be useful in this scenario, although it's slo...

Shade a wedge/portion of a compass or polar plot?

Hello, I've found <https://www.mathworks.com/help/matlab/ref/fill.html fill> to be useful in this scenario, although it's slo...

거의 8년 전 | 1

답변 있음

How do you pass a matrix (parameter) to decic and ode15i?

Hello, Rather than having to include your matrix in the decic/ode15i functions as an input, you could declare your matrix as ...

How do you pass a matrix (parameter) to decic and ode15i?

Hello, Rather than having to include your matrix in the decic/ode15i functions as an input, you could declare your matrix as ...

거의 8년 전 | 0

| 수락됨

질문

Are Global Variables Transferred Significantly Slower Than Function Inputs?

Hello, I have a few massive matrices which are used in a function that is called many thousands of times. Due to the way the ...

거의 8년 전 | 답변 수: 1 | 0

답변 있음

I was trying to plot a sine wave in matlab but it keeps on showing this error: undefined function or method 'sin' for input types of argument 'char'

You have a colon after t = 0.0:0.001:10: <- t = 0:0.001:10; x = sin(4*pi*t); plot(t,x) The above code works for me....

I was trying to plot a sine wave in matlab but it keeps on showing this error: undefined function or method 'sin' for input types of argument 'char'

You have a colon after t = 0.0:0.001:10: <- t = 0:0.001:10; x = sin(4*pi*t); plot(t,x) The above code works for me....

거의 8년 전 | 0

답변 있음

How to assign properly global variables

Hello, I provide a specific solution at the bottom after the explanation on global variables. Global variables are a way t...

How to assign properly global variables

Hello, I provide a specific solution at the bottom after the explanation on global variables. Global variables are a way t...

거의 8년 전 | 2

| 수락됨