How do you generate a stair up MATLAB function?

2 ビュー (過去 30 日間)
Ahmed Aldulaim
Ahmed Aldulaim 2019 年 1 月 30 日
コメント済み: Star Strider 2019 年 1 月 30 日
How do you generate a stair up MATLAB function?
exactly like the one in the pircture below

採用された回答

Star Strider
Star Strider 2019 年 1 月 30 日
Try this:
t = 0:100;
s = floor(rem(t, 10.1));
figure
stairs(t, s)
Experiment to get the result you want.
  6 件のコメント
Ahmed Aldulaim
Ahmed Aldulaim 2019 年 1 月 30 日
Thank you sir! It helped.
Star Strider
Star Strider 2019 年 1 月 30 日
As always, my pleasure!

サインインしてコメントする。

その他の回答 (0 件)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by