How do I print the solution equation from an ode solver
Show older comments
clc; clear all; close all
tspan = [0 5];
y0 = 0;
[t,y] = ode113(@(t,y) 2*t, tspan, y0);
disp([t,y]);
plot(t,y)
How do I print the solution of this ode? y'=2*t , I want to print the result, in this case y=t^2, on the screen.
Accepted Answer
More Answers (0)
Categories
Find more on Ordinary Differential Equations 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!