How do I print the solution equation from an ode solver
Afficher commentaires plus anciens
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.
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Ordinary Differential Equations dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
