Generating an isolated rectangular pulse

15 次查看(过去 30 天)
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