How to do stem plots centered around a function?

3 ビュー (過去 30 日間)
Tompak
Tompak 2017 年 7 月 11 日
回答済み: KSSV 2017 年 7 月 11 日
Hi!
I want to use stem plots for showing the deviation of measured values from an equation and think stem is a good choice.
However, I have not found a way of doing these stem plots centered from anything else than a constant (basevalue).
Is there anything like a baseline that I could express my equation in and get the stem plots centered around?
Best regards

採用された回答

KSSV
KSSV 2017 年 7 月 11 日
doc errorbar
x = 1:10;
y = sin(x);
e = std(y)*ones(size(x));
plot(x,y,'b')
hold on
errorbar(x,y,e,'bo','markerfacecolor',[0 0 1])

その他の回答 (0 件)

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by