MATLAB Answers

why this calculations didnt show the graphics ?

3 views (last 30 days)
Mohammad Osama Putra
Mohammad Osama Putra on 26 Feb 2020
Commented: KSSV on 26 Feb 2020
%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)

Sign in to answer this question.

Tags

Products