Respondida
Help using data from a trend line in my code.
Use polyfit to make the fit and polyval to evaluate the fit. For example: p = polyfit(x,y,n); % get fit parameters f = p...

más de 10 años hace | 0

Respondida
error: In an assignment A(I) = B, the number of elements in B and I must be the same.
Probably this line: b=b+N(j)*q(Element,j); Element is a vector itself. It should be a scalar but i dont know exactl...

más de 10 años hace | 0

Respondida
Is it possible to calcuilate intergtal from time t-A to t (backward integration/~moving average)?
Yes, you can use tsmovavg for example.

más de 10 años hace | 0

Respondida
How to interpolate gridded data for a single point?
griddata maybe?

más de 10 años hace | 0

Respondida
Which function should I use to plot 2-D color figures out of a XYZ grid data results?
Have you tried imagesc?

más de 10 años hace | 0

Respondida
Can I find nonnegative eigenvalues using eigs
Yes it is. At least if its a symmetric matrix. Else you can only get n-2 eigenvalues, where (n,n) is the size of the matrix. Jus...

más de 10 años hace | 0

Respondida
plotting a 1*1 matrix
If your data is from simulink, it's probably a structure with time. To plot your data you have to do: plot(current.time,cur...

más de 10 años hace | 0