error in Euler method
Show older comments
. could you please, check my code I did not get as the following pic.
for i=1:length(T)-1
x1(i+1)=x1(i)+dX1*h;
x2(i+1)=x2(i)+dX2*h;
v1(i+1)=v1(i)+dX3*h;
v2(i+1)=v2(i)+dX4*h;
end
2 Comments
James Tursa
on 17 Oct 2018
Closing your question and deleting your code and comments is not appreciated on this forum since it does not help anyone else later on. Please keep your questions and comments intact for everyone to see. Thanks.
Momo
on 17 Oct 2018
Accepted Answer
More Answers (0)
Categories
Find more on Loops and Conditional Statements 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!