Generating an isolated rectangular pulse

조회 수: 16 (최근 30일)
..
.. 2019년 3월 21일
답변: Walter Roberson 2019년 3월 21일
How can I generate a pulse of amplitude 1 but only between certain points, like 25 to 75?
T=.2
t=25:75
x=rectpuls(t,T)
plot(t,x)
axis([0 100 0 1.2])

답변 (1개)

Walter Roberson
Walter Roberson 2019년 3월 21일
t = 25:75;
x(t) = T;

카테고리

Help CenterFile Exchange에서 Switches and Breakers에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by