plot Discrate time signal

조회 수: 1 (최근 30일)
Muhammad Fauzan
Muhammad Fauzan 2021년 1월 12일
댓글: Star Strider 2021년 1월 12일
Please give me a sample completion code discrate time signal

답변 (1개)

Walter Roberson
Walter Roberson 2021년 1월 12일
x = sort(rand(1,10));
y = rand(1,10);
stem(x, y)
  댓글 수: 2
Muhammad Fauzan
Muhammad Fauzan 2021년 1월 12일
If this is the case x(t)u(1-t):
whats the solution?
Walter Roberson
Walter Roberson 2021년 1월 12일
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

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

카테고리

Help CenterFile Exchange에서 Correlation and Convolution에 대해 자세히 알아보기

제품


릴리스

R2014a

Community Treasure Hunt

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

Start Hunting!

Translated by