フィルターのクリア

Plot with step changes - no interpolation

58 ビュー (過去 30 日間)
John
John 2011 年 11 月 4 日
Hello,
The standard for plotting a line in matlab is that the line is drawn with a constant slope between the points. I would like to plot something where each subsequent y-value represents a step change in rate. The resulting plot would look blocky, rather than smoothed between the points. Any suggestions that will help me with this?
Thank you.

採用された回答

Fangjun Jiang
Fangjun Jiang 2011 年 11 月 4 日
stairs(1:10)

その他の回答 (2 件)

Walter Roberson
Walter Roberson 2011 年 11 月 4 日
Perhaps a stairs() plot ?

John
John 2011 年 11 月 4 日
Thank you both.

カテゴリ

Help Center および File ExchangeLine Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by