How can I add the solutions of xd as a matrix , I tried with xd1 , but it still give an error. and how can I make the new value as a initial value for the next st. x0 known and kmax =10. While the solution should be a matrix of 10 rows .. Thank you !
1 view (last 30 days)
Show older comments
for k=1:kmax t1=k*h; xd=modeu(Fdfpek,t1,x0,h); xd1=[xd'; x0]; x0=xd; end
0 Comments
Accepted Answer
Mischa Kim
on 27 Mar 2014
Ammar, use
for k = 1:kmax
t1 = k*h;
xd(k) = modeu(Fdfpek,t1,x0,h);
x0 = xd(k);
end
0 Comments
More Answers (0)
See Also
Categories
Find more on Symbolic Math Toolbox in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!