why this calculations didnt show the graphics ?

2 views (last 30 days)
%program P2_2
%Persamaan differensial
clear;
clf;
eps=-0.00000001;
syms x(t) ys(t) y(t) u(t);
x(t)=heaviside(1)*exp(-2*t);
dys=diff(ys);
y(t)=dsolve(ys+3*dys+2*diff(ys,2)==x,ys(eps)==0,dys(eps)==0);
u(t)= y(t)+5*y(t);
pretty(u(t));
  2 Comments
Walter Roberson
Walter Roberson on 26 Feb 2020
Because the code does not contain any graphics calls?
fplot(u)
KSSV
KSSV on 26 Feb 2020
There is no plot command used in your code. How you expect to get a plot?
Read about ezplot.

Sign in to comment.

Answers (0)

Tags

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!