how to plot step graph
54 ビュー (過去 30 日間)
古いコメントを表示
I want to plot a step graph using the two matrices below:
W = [0.992; 0.997; 0.99996; 0.99997; 0.999992; 0.999995; 1.0000;];
X = [100; 98; 65; 45; 38; 36; 0;];
I want to use W as the x-axis and X as y-axis
0 件のコメント
採用された回答
Star Strider
2019 年 8 月 17 日
I am not certain what a ‘step graph’ refers to.
Try this:
figure
stairs(W, X, 'LineWidth',2)
grid
2 件のコメント
Star Strider
2019 年 8 月 17 日
My pleasure!
If my Answer helped you solve your problem, please Accept it!
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!