how to right math functions
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
how can I define u(t) for the domain of t. To put in in M-file
2 Kommentare
Antworten (2)
Sam Chak
am 8 Mai 2023
For simplicity, the signal can be defined like this.
t = linspace(-5, 10, 15001);
u1 = 0*(t <= 0);
u2 = 4*(t > 0 & t <= 5);
u3 = 2*(t > 5);
u = u1 + u2 + u3;
plot(t, u), grid on, ylim([-0.5 4.5])
0 Kommentare
Siehe auch
Kategorien
Mehr zu Interpolation finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!