unit step function to MATLAB
Mostrar comentarios más antiguos
i need to plot x(t) and y(t) in matlab but i need to convert them to codes first 

Respuesta aceptada
Más respuestas (1)
Abdelrhman Abdelfatah
el 13 de Mayo de 2022
Editada: Abdelrhman Abdelfatah
el 13 de Mayo de 2022
0 votos
You need to use Symbolic Math Toolbox
syms x(t) y(t)
x(t) = piecewise((t>-0.5)&(t<0.5),2.5,0)
y(t) = piecewise((t>-3)&(t<0),-2,(t>0)&(t<3),1.5,0)
subplot(2,1,1)
fplot(x)
subplot(2,1,2)
fplot(y)
Categorías
Más información sobre Axis Labels en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
