how to use read variable

2 Ansichten (letzte 30 Tage)
John fredson
John fredson am 20 Mai 2022
Beantwortet: KSSV am 20 Mai 2022
May I know how to obtain column of population using readtable?

Akzeptierte Antwort

KSSV
KSSV am 20 Mai 2022
T = readtable('https://in.mathworks.com/matlabcentral/answers/uploaded_files/1005205/Population_data.xlsx') ;
T.Population_million_ % use column name
T.(3) % using index

Weitere Antworten (1)

Jan
Jan am 20 Mai 2022
T = readtable('Population_data.xlsx');
population = T{:, 3};

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by