フィルターのクリア

Add uncertainty interval time-series

2 ビュー (過去 30 日間)
Sarah Yun
Sarah Yun 2019 年 12 月 15 日
回答済み: Star Strider 2019 年 12 月 16 日
Hi,
I have time-series data of temperature along time.
I have plotted the data on a simple graph.
How can I make a band around the time-series temperature data on the graph to show a 0.1 ◦ C uncertainty in air temperature?
What code do you suggest?
Thank you.

採用された回答

Star Strider
Star Strider 2019 年 12 月 16 日
Depending on the plot resolution, it could be difficult to see easily.
Try this:
time = linspace(0, 20);
temp = 20+10*sin(2*pi*time/15);
figure
plot(time, temp)
hold on
patch([time fliplr(time)], [temp fliplr(temp)+0.1], [0.8 0 0], 'EdgeColor','none') % Plot +0.1 C Band
hold off
grid
ylim([0 35])

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeDebugging and Analysis についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by