How to plot this equation of unit step function

I have plotted this equation by hand i just want to see how matlab plots it
y[n]= u[n-1]-u[n-2]-u[n-3]+u[n-4]
plz tell me how to write its code

답변 (1개)

Walter Roberson
Walter Roberson 2011년 10월 11일

0 개 추천

It will not look like much of anything, seeing as the left side deals exclusively with "y" and the right side deals exclusively with "u".

댓글 수: 1

You will need 3 given values in order to be able to plot this; e.g., u[0], u[1], u[2]

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

태그

질문:

2011년 10월 11일

Community Treasure Hunt

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

Start Hunting!

Translated by