Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

Just wondering how to I plot these functions into Matlab?

1 visualización (últimos 30 días)
John Marl
John Marl el 1 de Nov. de 2018
Cerrada: MATLAB Answer Bot el 20 de Ag. de 2021
Just need help plotting these two functions into Matlab

Respuestas (1)

Birdman
Birdman el 2 de Nov. de 2018
Try this:
syms x(t) h(t)
x(t)=piecewise(t>=-1 & t<=1,1,t<-1 | t>1,0)
h(t)=rectangularPulse((t-1)/4)
t=-5:0.01:5;
figure(1);plot(t,x(t))
figure(2);plot(t,h(t))

Etiquetas

Productos


Versión

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by