답변 있음

I don't know why I am not getting an arc when I change the dimension

I'm not sure from your code exactly what the parameters of your arc should be but this is probably closer to what you want. You ...

I don't know why I am not getting an arc when I change the dimension

I'm not sure from your code exactly what the parameters of your arc should be but this is probably closer to what you want. You ...

17일 전 | 0

답변 있음

How can I add variable amount of padding to each column in my matrix?

Try Apad = tril(A,-1)

How can I add variable amount of padding to each column in my matrix?

Try Apad = tril(A,-1)

18일 전 | 0

| 수락됨

답변 있음

How to solve equation with ten unknowns with Fourier Analysis

If you have the optimization toolbox you can use fsolve

How to solve equation with ten unknowns with Fourier Analysis

If you have the optimization toolbox you can use fsolve

18일 전 | 0

답변 있음

How to connect the plot point in matlab

First, you should avoid name your variable length, (which I think you mispelled in your example above as lenght) as length is a ...

How to connect the plot point in matlab

First, you should avoid name your variable length, (which I think you mispelled in your example above as lenght) as length is a ...

19일 전 | 0

| 수락됨

답변 있음

Create array with average values

Use reshape. Say data is a 480 element vector X = reshape(data,12,40) Then if you want the average over all the data you can j...

Create array with average values

Use reshape. Say data is a 480 element vector X = reshape(data,12,40) Then if you want the average over all the data you can j...

19일 전 | 0

| 수락됨

답변 있음

Need Help Error using vertcat Dimensions of arrays being concatenated are not consistent. Error in myModel (line 20) dy = [lambda+theta1*Va+theta2*Vb-(beta*Ih+ mu+ alpha1+alpha2)*S;

The line of code you provide does not provide enough information to provide specific guidance. First you are missing a right ha...

Need Help Error using vertcat Dimensions of arrays being concatenated are not consistent. Error in myModel (line 20) dy = [lambda+theta1*Va+theta2*Vb-(beta*Ih+ mu+ alpha1+alpha2)*S;

The line of code you provide does not provide enough information to provide specific guidance. First you are missing a right ha...

22일 전 | 1

| 수락됨

답변 있음

How to read video and save each video to CSV file

Hi Kong clear all close all %// read the video: list = dir('*.avi') % loop through the filenames in the list for k = 1:len...

How to read video and save each video to CSV file

Hi Kong clear all close all %// read the video: list = dir('*.avi') % loop through the filenames in the list for k = 1:len...

22일 전 | 0

| 수락됨

답변 있음

Trying to move images to different folder based on CNN classification, and failing

I would suggest checking the return status and error messages from movefile by assigning some left hand arguments to the movefil...

Trying to move images to different folder based on CNN classification, and failing

I would suggest checking the return status and error messages from movefile by assigning some left hand arguments to the movefil...

22일 전 | 0

| 수락됨

답변 있음

Computing all values for Width and Height

Here are some hints: So think about an equation that expresses the Area A in terms of H and W. Now you know A so if you specify...

Computing all values for Width and Height

Here are some hints: So think about an equation that expresses the Area A in terms of H and W. Now you know A so if you specify...

23일 전 | 1

답변 있음

Why isn't IF statement stopping Wile loop

You never break out of the inner loop where you alternate between players, so the condition doesn't get checked Try putting in ...

Why isn't IF statement stopping Wile loop

You never break out of the inner loop where you alternate between players, so the condition doesn't get checked Try putting in ...

23일 전 | 0

| 수락됨

답변 있음

How to read several files and save CSV files in folder

You can use list = dir('*.avi') to get a list of the .avi files in your local director. Check out the documentation on the dir...

How to read several files and save CSV files in folder

You can use list = dir('*.avi') to get a list of the .avi files in your local director. Check out the documentation on the dir...

23일 전 | 0

| 수락됨

답변 있음

transform x,y coordinate to angle

I would think that you could use atan2 or atan2d (if you want result in degrees) for this. For example x1 = [2;1] % first poin...

transform x,y coordinate to angle

I would think that you could use atan2 or atan2d (if you want result in degrees) for this. For example x1 = [2;1] % first poin...

23일 전 | 0

| 수락됨

답변 있음

point slope form on matlab? how should it be inputted?

I don't think there is anything wrong with you formula, I'm guessing you didn't define your x1,y1, m, and x properly. Try someth...

point slope form on matlab? how should it be inputted?

I don't think there is anything wrong with you formula, I'm guessing you didn't define your x1,y1, m, and x properly. Try someth...

25일 전 | 0

답변 있음

issue with polyval and polyfit measuring time

One problem may be that you think that log(x) gives log to the base 10 of x but it is the natural log. So use instead xlog = l...

issue with polyval and polyfit measuring time

One problem may be that you think that log(x) gives log to the base 10 of x but it is the natural log. So use instead xlog = l...

25일 전 | 2

답변 있음

How to calculate an average of a weather variable for a month during daylight hours only?

Here's an example of one way to do it filename = 'sgpceil10mC1.b1.20190101.000000.custom.csv' % read data into a table T ...

How to calculate an average of a weather variable for a month during daylight hours only?

Here's an example of one way to do it filename = 'sgpceil10mC1.b1.20190101.000000.custom.csv' % read data into a table T ...

25일 전 | 0

답변 있음

how to generate a random vector with fixed sum and bounded elements

Hi John, In case I have a chance to work on this some more, and for future reference, do you have any advice on quantitative tes...

how to generate a random vector with fixed sum and bounded elements

Hi John, In case I have a chance to work on this some more, and for future reference, do you have any advice on quantitative tes...

25일 전 | 0

답변 있음

permutation matrix for process simulation

You should be able to loop using perms and nchoosek to do what you need. Something like this: % generate filtration test matr...

permutation matrix for process simulation

You should be able to loop using perms and nchoosek to do what you need. Something like this: % generate filtration test matr...

약 1달 전 | 0

| 수락됨

답변 있음

Is it possible to calculate the average Manhattan distance between a set of 2D points with one function?

I think this does what you want. You could probably make it more efficient recognizing the symmetry of the distance matrix, but ...

Is it possible to calculate the average Manhattan distance between a set of 2D points with one function?

I think this does what you want. You could probably make it more efficient recognizing the symmetry of the distance matrix, but ...

약 1달 전 | 0

| 수락됨

답변 있음

Splitting a vector into separate vectors using thresholds

While I was working on this I see you already got an answer from Stephen. My approach is similar although not as vectorized. A...

Splitting a vector into separate vectors using thresholds

While I was working on this I see you already got an answer from Stephen. My approach is similar although not as vectorized. A...

약 1달 전 | 0

답변 있음

add time shift to signal vector

If you want to shift your data by an integer number of samples you can do something like this (here I'm just shifting y2, and pl...

add time shift to signal vector

If you want to shift your data by an integer number of samples you can do something like this (here I'm just shifting y2, and pl...

약 1달 전 | 0

답변 있음

Find rows of a matrix corresponds to accumarray results

I was having a little difficulty understanding the description of your problem but I think this accomplishes what you are trying...

Find rows of a matrix corresponds to accumarray results

I was having a little difficulty understanding the description of your problem but I think this accomplishes what you are trying...

약 1달 전 | 0

답변 있음

Can Matlab generate this plot?

Something like this example should get you close: % make a matrix of data just to demonstrate, you would use your own data here...

Can Matlab generate this plot?

Something like this example should get you close: % make a matrix of data just to demonstrate, you would use your own data here...

약 1달 전 | 1

답변 있음

Plot velocity profile of microfluid flow

Your use of the if elseif to determine what the appropriate function to evaluate is good, but you have a conceptual error on wha...

Plot velocity profile of microfluid flow

Your use of the if elseif to determine what the appropriate function to evaluate is good, but you have a conceptual error on wha...

약 1달 전 | 1

| 수락됨

답변 있음

Write a function called valid_date that takes three positive integer scalar inputs year, month, day. If these three represent a valid date, return a logical true, otherwise false. The name of the output argument is valid.

I verified that your program correctly returns that valid_date(2017,9,31) is false. It looks like you are using some kind of te...

Write a function called valid_date that takes three positive integer scalar inputs year, month, day. If these three represent a valid date, return a logical true, otherwise false. The name of the output argument is valid.

I verified that your program correctly returns that valid_date(2017,9,31) is false. It looks like you are using some kind of te...

약 1달 전 | 1

답변 있음

How do you transfer this signal into linear form?

I see this is a follow up to your previous question which was answered in https://www.mathworks.com/matlabcentral/answers/506414...

How do you transfer this signal into linear form?

I see this is a follow up to your previous question which was answered in https://www.mathworks.com/matlabcentral/answers/506414...

약 1달 전 | 0

| 수락됨

답변 있음

User defined function "not enough inputs"

The error message means that when you called the function, either on the command line, or in another script, you did not provide...

User defined function "not enough inputs"

The error message means that when you called the function, either on the command line, or in another script, you did not provide...

약 1달 전 | 0

| 수락됨

답변 있음

How to solve a simple Matrix equation?

It looks like you want to find all of the vectors satisfying Ax = 0 for some singular matrix , A. If so, you can do this using ...

How to solve a simple Matrix equation?

It looks like you want to find all of the vectors satisfying Ax = 0 for some singular matrix , A. If so, you can do this using ...

약 1달 전 | 2

| 수락됨

답변 있음

Picking the (n) th occurrence of a number in a vector or the (n)th row in a matrix.

% make a random vector of data just for example purposes x = rand(25,1); % define n for your nth element selection n = 3 % fo...

Picking the (n) th occurrence of a number in a vector or the (n)th row in a matrix.

% make a random vector of data just for example purposes x = rand(25,1); % define n for your nth element selection n = 3 % fo...

약 1달 전 | 0

| 수락됨

답변 있음

How do you separate imported data into time and amplitude?

If by detrend you mean that you want to remove the part of the signal that is growing linearly with time then the expression you...

How do you separate imported data into time and amplitude?

If by detrend you mean that you want to remove the part of the signal that is growing linearly with time then the expression you...

약 1달 전 | 0

| 수락됨

답변 있음

Summing/taking weighted average within a range for a table

Let's say you have a table called T, that has a column called x. To find, for example, the sum row 10 through 18 of variable x ...

Summing/taking weighted average within a range for a table

Let's say you have a table called T, that has a column called x. To find, for example, the sum row 10 through 18 of variable x ...

약 2달 전 | 0