How to plot a 2nd derivative equation
1 次查看(过去 30 天)
显示 更早的评论
Hi all,
for equation like this
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/421153/image.png)
How to plot the graph with x(t) in y axis and t in x axis?
the code I use is this
syms equ(t) x(t)
Dx = diff(x(t))
D2x = diff(x(t),2)
w = 1
% dt = 1/1000;
% t = 0:dt:1000*dt; % Not needed Here
equ = D2x + (Dx)^3 + x(t)^2 *Dx + x(t) ;
%equ(t) = subs(equ, x, {exp(-1i*w*t)+exp(1i*w*t)}) % Substitute Expression For
figure
fimplicit(equ, [-1 1]) % Use ‘fimplicit’ To Plot ‘equ(t)=0’
grid
and the result is a blenk
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/421158/image.png)
How do correctly plot it?
Thank you
0 个评论
回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!