How to find data

4 ビュー (過去 30 日間)
John fredson
John fredson 2022 年 5 月 19 日
コメント済み: John fredson 2022 年 5 月 19 日
Can I ask how to find variables with the same country name, correspond total death, cases and plot it on the graph which in a huge data set like this
  4 件のコメント
John fredson
John fredson 2022 年 5 月 19 日
@David Hillyes please
John fredson
John fredson 2022 年 5 月 19 日
@Jan yes the graph should look like number of lines represent the relationship of countries and corresponding accumulated cases and deaths

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

回答 (1 件)

David Hill
David Hill 2022 年 5 月 19 日
t=readtable('owid-covid-data_2020-21.csv');
u=unique(t.Location);
s=zeros(1,length(u));
for k=1:length(u)
s(k)=sum(t.TotalDeaths(ismember(t.Location,u(k))));
end
bar(1:length(u),s)

カテゴリ

Help Center および File ExchangeLive Scripts and Functions についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by