how can I plot this function?
조회 수: 1 (최근 30일)
이전 댓글 표시
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
채택된 답변
shubhi dua
2020년 4월 6일
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)
추가 답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!