How to plot this equation of unit step function

1 Ansicht (letzte 30 Tage)
moonman
moonman am 11 Okt. 2011
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

Antworten (1)

Walter Roberson
Walter Roberson am 11 Okt. 2011
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 Kommentar
Walter Roberson
Walter Roberson am 11 Okt. 2011
You will need 3 given values in order to be able to plot this; e.g., u[0], u[1], u[2]

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu 2-D and 3-D Plots finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by