plot Discrate time signal

1 visualización (últimos 30 días)
Muhammad Fauzan
Muhammad Fauzan el 12 de En. de 2021
Comentada: Star Strider el 12 de En. de 2021
Please give me a sample completion code discrate time signal

Respuestas (1)

Walter Roberson
Walter Roberson el 12 de En. de 2021
x = sort(rand(1,10));
y = rand(1,10);
stem(x, y)
  2 comentarios
Muhammad Fauzan
Muhammad Fauzan el 12 de En. de 2021
If this is the case x(t)u(1-t):
whats the solution?
Walter Roberson
Walter Roberson el 12 de En. de 2021
u = @(t) (t>=0);
x = sort(rand(1,10)*5-2);
y = rand(1,10);
stem(x, y)
hold on
y2 = y .* u(1-x);
stem(x, y2, 'r')
hold off

Iniciar sesión para comentar.

Productos


Versión

R2014a

Community Treasure Hunt

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

Start Hunting!

Translated by