Info
This question is closed. Reopen it to edit or answer.
Help me edit my matrices sizes
1 view (last 30 days)
Show older comments
I am trying to find the RMSE from two sets of data, but I cant do so, because y is 20617x1 double, and y2 is 21093x1 double, can I please get some help?!
f=inline('-2/7*y^3 -2*y + 2*(2500 + 3000*cos(0.7*x))')
[x,y]=ode45(f,[0 30],26);
z=inline('-2*291*y + 2*(0 + 3000*cos(0.7*x))')
[x2,y2]=ode45(z,[0 30], 0);
xv=mean(abs((26+y2)-y));
0 Comments
Answers (1)
Jan
on 12 Jan 2014
Avoid inline and use anonymous functions instead.
If you want the output of the integrator to specific time steps, request this explicitly as described in the help text of ODE45:
[x, y] = ode45(f, linspace(0, 30, 20000), 26);
[x2, y2] = ode45(z, linspace(0, 30, 20000), 0);
1 Comment
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!