How to the data from different categories to plot?

2 ビュー (過去 30 日間)
Kien Nguyen
Kien Nguyen 2019 年 12 月 16 日
回答済み: Kien Nguyen 2019 年 12 月 17 日
Hello,
I have 10 categories, each one contains several data in each row. How will I read these data with each category for plotting bar chart with error bars?
Thank you.
Kevin Nguyen
  3 件のコメント
Kien Nguyen
Kien Nguyen 2019 年 12 月 16 日
Hi Walter,
I attach the data in which I want to plot (x = column B: there are 10 sites) and (y = column O, the mean value) and error bar (column P) for 7 years (column A). The plot result is as the results file.
Could you help me how to do this?
Thank you,
Kevin Nguyen
Walter Roberson
Walter Roberson 2019 年 12 月 16 日
T = readtable('Data.xlsx');
errorbar(T.Mean, T.Site);

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

回答 (1 件)

Kien Nguyen
Kien Nguyen 2019 年 12 月 17 日
Dear Walter,
Could you help me to read data for 7 groups of 2010, 2011, 2012, 2013, 2015, 2016 and 2017 in which x, y, error values are read from the columns 2, 15 and 16 corresponding and plot a bar chart like the attachment.
Thank you.
Kevin

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by