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

Respuestas (1)

Walter Roberson
Walter Roberson el 11 de Oct. de 2011

0 votos

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 comentario

Walter Roberson
Walter Roberson el 11 de Oct. de 2011
You will need 3 given values in order to be able to plot this; e.g., u[0], u[1], u[2]

Iniciar sesión para comentar.

Categorías

Más información sobre 2-D and 3-D Plots en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 11 de Oct. de 2011

Community Treasure Hunt

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

Start Hunting!

Translated by