フィルターのクリア

How to plot this graph?

3 ビュー (過去 30 日間)
Abhishek Chakraborty
Abhishek Chakraborty 2020 年 2 月 27 日
I want to plot such a graph. The upper domain of the shaded area is Mean+Standard deviation and the lower one is Mean-Standard deviation. The yellow line is Mean. Both the CUE and Latitude are column vectors with 3794932 elements each. How to proceed with it on MATLAB? Kindly help me.
  2 件のコメント
Mohammad Sami
Mohammad Sami 2020 年 2 月 27 日
you can use the patch function to do this.
Abhishek Chakraborty
Abhishek Chakraborty 2020 年 2 月 27 日
How to generate the standard deviation and mean series? It is a very irregular and large dataset.

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

採用された回答

Monisha Nalluru
Monisha Nalluru 2020 年 3 月 3 日
The below code could be helpful in plotting the graph.
load data
x=data.Latitude;
y=data.CUE;
std_dev=std(y); %calculate standard deviation
curve1=y+std_dev; %above curve
curve2=y-std_dev; %below curve
x2=[x, fliplr(x)];
Middle=[curve1, fliplr(curve2)];
fill(x2,Middle,'g'); %plot the shaded area between curves
hold on;
plot(x,y,'y','LineWidth',2); %plot the mean line
Also refer the following links:
  1 件のコメント
Abhishek Chakraborty
Abhishek Chakraborty 2020 年 3 月 9 日
Thanks a lot

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

その他の回答 (0 件)

カテゴリ

Help Center および File Exchange2-D and 3-D Plots についてさらに検索

タグ

製品


リリース

R2015a

Community Treasure Hunt

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

Start Hunting!

Translated by