回答済み

Get the coefficients in a vector from cftool ?

You'll need to do some reshaping as fit expects column vectors for x, y and z. If I have my dimensions correct, something like t...

Get the coefficients in a vector from cftool ?

You'll need to do some reshaping as fit expects column vectors for x, y and z. If I have my dimensions correct, something like t...

6年以上 前 | 0

回答済み

Variable 'a' is undefined on some execution paths.

It is really useful and much easier for folks to read code if you put it in Code formatting. Also, as good practice, I recommend...

Variable 'a' is undefined on some execution paths.

It is really useful and much easier for folks to read code if you put it in Code formatting. Also, as good practice, I recommend...

6年以上 前 | 0

回答済み

Why am I getting errors with this code?

There are a few issues here. First of all, you cannot declare functions in a standard m-file script. They have to be in separate...

Why am I getting errors with this code?

There are a few issues here. First of all, you cannot declare functions in a standard m-file script. They have to be in separate...

6年以上 前 | 0

| 採用済み

回答済み

polyfit in a for loop

Firstly, this is a poorly conditioned problem. You are trying to fit a straight line through a single data point, so there is no...

polyfit in a for loop

Firstly, this is a poorly conditioned problem. You are trying to fit a straight line through a single data point, so there is no...

6年以上 前 | 1

| 採用済み

回答済み

Optimal Method For Saving Large Amounts of Data To Read Into MATLAB

While I'm sorry to say that I don't have a direct solution for you, perhaps you will get some useful ideas from these blogs on h...

Optimal Method For Saving Large Amounts of Data To Read Into MATLAB

While I'm sorry to say that I don't have a direct solution for you, perhaps you will get some useful ideas from these blogs on h...

6年以上 前 | 1

回答済み

p-values out of cftool fitting result

To extract the coefficients use the "fit" function.... [fitobject,gof,output]=fit([x, y], z, 'poly22'); fitobject.p00, f...

p-values out of cftool fitting result

To extract the coefficients use the "fit" function.... [fitobject,gof,output]=fit([x, y], z, 'poly22'); fitobject.p00, f...

6年以上 前 | 1

| 採用済み

回答済み

Scale beta distribution in a given interval

For a standard Beta distribution, our random variate x, exists in the range 0 to 1. First we start with a transformed variabl...

Scale beta distribution in a given interval

For a standard Beta distribution, our random variate x, exists in the range 0 to 1. First we start with a transformed variabl...

6年以上 前 | 1

| 採用済み

回答済み

how can I split an array into n arrays?

One possible option is to use mat2cell... C = mat2cell(X, size(X,1)/13.*ones(13,1), 2); Each cell of C now contains a 29...

how can I split an array into n arrays?

One possible option is to use mat2cell... C = mat2cell(X, size(X,1)/13.*ones(13,1), 2); Each cell of C now contains a 29...

6年以上 前 | 0

回答済み

what is cos 30?

MATLAB also has the cosd() function, so you can use cosd(30). Have a look at the trigonometry documentation for other similar f...

what is cos 30?

MATLAB also has the cosd() function, so you can use cosd(30). Have a look at the trigonometry documentation for other similar f...

6年以上 前 | 2

回答済み

Generating a population randomly starting from some parameters

If your inputs X are distributed then Q will also be distributed. So when you say you want to determine Q, do you mean the distr...

Generating a population randomly starting from some parameters

If your inputs X are distributed then Q will also be distributed. So when you say you want to determine Q, do you mean the distr...

6年以上 前 | 0

回答済み

how to get the function as the sum of other functions?

The easiest way would be to set it up your function as something like... sumf = @(x) sum(energy - laa .* (1-exp(-x)) ) ...

how to get the function as the sum of other functions?

The easiest way would be to set it up your function as something like... sumf = @(x) sum(energy - laa .* (1-exp(-x)) ) ...

6年以上 前 | 0

| 採用済み

回答済み

For loop for applying filter for each column

Xnew is not indexed. You should have Xnew(:, i). You could do this without the loop. One such way would be... Xnew = X -...

For loop for applying filter for each column

Xnew is not indexed. You should have Xnew(:, i). You could do this without the loop. One such way would be... Xnew = X -...

6年以上 前 | 1

| 採用済み

質問

MATLAB 2014b missing GUIDE elements

I started creating a GUIDE GUI in 2014a and have just upgraded to 2014b. I was aware that some GUI elements may be hidden due to...

6年以上 前 | 2 件の回答 | 5