How do I solve this differential equation with MATLAB?
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Hi yall!
I'm wondering how to get the solution for "dy/dx = x^2 - 1" in MATLAB using dsolve with initial condition y(0) = 1. I want to know and see all the MATLAB work for when x = 1 and when x = 2. I'm familiar with dsolve but I want to see how to use it correctly. Please help me.
0 Kommentare
Antworten (1)
Walter Roberson
am 3 Okt. 2019
Bearbeitet: Walter Roberson
am 3 Okt. 2019
syms y(x)
dy = diff(y(x),x);
eqn = dy == Some Function Of x and y
sol = dsolve(eqn, y(0) == Initial Condition)
subs(sol, x, Some Value)
Siehe auch
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!