How do you generate a stair up MATLAB function?
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Ahmed Aldulaim
el 30 de En. de 2019
Comentada: Star Strider
el 30 de En. de 2019
How do you generate a stair up MATLAB function?
exactly like the one in the pircture below

0 comentarios
Respuesta aceptada
Star Strider
el 30 de En. de 2019
Try this:
t = 0:100;
s = floor(rem(t, 10.1));
figure
stairs(t, s)
Experiment to get the result you want.
6 comentarios
Más respuestas (0)
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!