How can I move data on a graph?

조회 수: 3 (최근 30일)
Pul
Pul 2021년 5월 7일
답변: Cris LaPierre 2021년 5월 7일
Hi everyone,
This is my graph. I should put the red data at the same weight of orange data in the graph.
The variable 7 is the Standard Deviation while the variable 8 is the average.
I tried in this way for the first red data, but it didn't work:
C=Var.8 % AVERAGE
for i =4041
C(i)=C(i)+99.658;
end
D=Var.7 %SD.DEV
for i =4041
D(i)=D(i)+99.658;
end
plot(example_daily.Time(:,1),[example_daily.Var5(:,1) C D]);
Thank you in advance.

답변 (1개)

Cris LaPierre
Cris LaPierre 2021년 5월 7일
Perhaps you want to use errorbar to create you plot instead of plot.

카테고리

Help CenterFile Exchange에서 Line Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by