How to generate one square pulse?

Respuestas (1)

Star Strider
Star Strider el 23 de Nov. de 2020
Try this:
sqpuls = @(t,t1,t2) (t>= t1) & (t <= t2);
t = linspace(-1, 1);
figure
plot(t, sqpuls(t, -0.5, 0.5), '-r')
grid
ylim(ylim*1.1)
Experiment to get the result you want.

Categorías

Más información sobre Simulink en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 23 de Nov. de 2020

Respondida:

el 23 de Nov. de 2020

Community Treasure Hunt

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

Start Hunting!

Translated by