Generating a data sequence that results in this graph
Mostrar comentarios más antiguos
Hello people,
Been racking my brain with this one. I need to write a data sequence that results in the graph below. I think I'm supposed to somehow use the unit step function and discrete delta function. I just have a really hard time figuring out how to start and what functions to manipulate.

Respuesta aceptada
Más respuestas (1)
x = -5:1:10 ;
y = zeros(size(x)) ;
y(x > -3 & x < 6) = 1 ;
stem(x,y)
1 comentario
xRah
el 5 de Nov. de 2020
Categorías
Más información sobre Directed Graphs en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

