How to do stem plots centered around a function?

조회 수: 2 (최근 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 CenterFile Exchange에서 Annotations에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by