How do you generate a stair up MATLAB function?
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Ahmed Aldulaim
il 30 Gen 2019
Commentato: Star Strider
il 30 Gen 2019
How do you generate a stair up MATLAB function?
exactly like the one in the pircture below

0 Commenti
Risposta accettata
Star Strider
il 30 Gen 2019
Try this:
t = 0:100;
s = floor(rem(t, 10.1));
figure
stairs(t, s)
Experiment to get the result you want.
6 Commenti
Più risposte (0)
Vedere anche
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!