I don't know how to plot what answer of dsolve
5 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
I want to plot the answer of dsolve. But I can't.
syms x;
f = dsolve('D2y=-(e-k^2)*y','y(0)=1','Dy(1)=0','x');
fplot(f(x));
It isn't work. I tried syms f, f(x) and fplot f,f(x) etc...
How plot?
0 Kommentare
Antworten (1)
madhan ravi
am 17 Mai 2019
syms y(x)
Dy = diff(y);
D2y = diff(y,2);
k=3; % example
f = dsolve(D2y==-(exp(-k^2))*y,y(0)==1,Dy(1)==0);
fplot(f);
Siehe auch
Kategorien
Mehr zu Calculus finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!