フィルターのクリア

How can I stack STEM plots in a single Matlab plot

3 ビュー (過去 30 日間)
Shaumik
Shaumik 2014 年 4 月 4 日
コメント済み: Sean de Wolski 2014 年 4 月 4 日
I am trying to stack 3 STEM plots but unable to do so.
I did the 3 normal plots by doing +1 and +2.
How can I do it?
  2 件のコメント
Star Strider
Star Strider 2014 年 4 月 4 日
Define ‘stack’.
Shaumik
Shaumik 2014 年 4 月 4 日
Hi Star Strider.
I want to arrange the 3 plots in the same graph one over another with a gap of some value.

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

採用された回答

Sean de Wolski
Sean de Wolski 2014 年 4 月 4 日
編集済み: Sean de Wolski 2014 年 4 月 4 日
x = (1:10)';
y = rand(10,3);
ys = cumsum(y,2);
stem(x,fliplr(ys))
  2 件のコメント
Shaumik
Shaumik 2014 年 4 月 4 日
編集済み: Sean de Wolski 2014 年 4 月 4 日
Thanks Sean.
How would I have to approach it if I import 3 sets of values and want to plot them as:
h=stem(CNB2s(1:100,1),A4,'r');set(h,'marker','none')
h=stem(CNB3s(1:100,1),A5,'b');set(h,'marker','none')
h=stem(CNB4s(1:100,1),A6,'g');set(h,'marker','none')
Sean de Wolski
Sean de Wolski 2014 年 4 月 4 日
I just edited the example. I think it's probably more in line with what you want now.

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

その他の回答 (0 件)

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by