Euclidean distance/time between differential equations

1 view (last 30 days)
So I want to show sensitivity to initial conditions in differential equations. So I want to graph time/distance between similar equations but with different initial conditions.When initial conditions are same I don't get any errors, but whenever I try to change one of the initial conditions, it says: Error using - Matrix dimensions must agree.
Error in startrealchua2 (line 4) Z = sqrt((k(:,1)-y(:,1)).^2+(k(:,2)-y(:,2)).^2+(k(:,3)-y(:,3)).^2) ;

Answers (0)

Categories

Find more on Function Creation 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!