Second order differential equation graphing
Show older comments

I need to create this part (only helixs(?))
I created
-------------------------------
syms y(t)
dy = diff(y,t); d2y = diff(y,t,t);
DE = dy2 - 2*dy + 5*y == 0
cond = [y(0) ==4, dy(0) == 0]
sol = dsolve(DE, cond)
y = matlabfunction(sol)
dy1 = matlabfunction(diff(y,t))
x = linspace(-6, 6, 250);
plot(y(x),dy1(x), 'blue', 'LineWidth',3)
----------------------------------------------
This code created

How should I create multiple of lines?
instead of just one line?
Accepted Answer
More Answers (0)
Categories
Find more on Calculus 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!