How could I make a periodic function in MatLab
Ältere Kommentare anzeigen
For example I have a function f(x)=2*t how could I make the function repeat every t=5 seconds ? After creating it I would like to plot it. Any ideas how someone could approach this?
Akzeptierte Antwort
Weitere Antworten (1)
ali vatan
am 4 Sep. 2020
1 Stimme
f = @(t) 2 * mod(t, 5);
fplot(f, [-10 10])
Kategorien
Mehr zu Lighting, Transparency, and Shading finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!