How to find data

3 visualizaciones (últimos 30 días)
John fredson
John fredson el 19 de Mayo de 2022
Comentada: John fredson el 19 de Mayo de 2022
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 comentarios
John fredson
John fredson el 19 de Mayo de 2022
@David Hillyes please
John fredson
John fredson el 19 de Mayo de 2022
@Jan yes the graph should look like number of lines represent the relationship of countries and corresponding accumulated cases and deaths

Iniciar sesión para comentar.

Respuestas (1)

David Hill
David Hill el 19 de Mayo de 2022
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)

Categorías

Más información sobre Live Scripts and Functions en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by