how can I plot this function?

2 views (last 30 days)
Shouq A
Shouq A on 6 Apr 2020
Commented: darova on 7 Apr 2020
how can i plot this function in matlab x(t)= J0(πt)[u(t) − u(t − 1)] and h(t) = 1.5 cos(πt)[u(t) − u(t − 1.5)]?
  1 Comment
darova
darova on 6 Apr 2020
Make an effort. It's your second time you want someone to do your homework

Sign in to comment.

Accepted Answer

shubhi dua
shubhi dua on 6 Apr 2020
t=0:0.001:20
% as you decrease the step size the graph becomes more and more acurate.%
x= J0(pi*t)(heaviside(t)-heaviside(t-1))
plot(t,x)
y=1.5*cos(pi*t).*(heaviside(t)-heaviside(t-1.5))
plot(t,y)

More Answers (0)

Categories

Find more on 2-D and 3-D Plots in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!