how to use read variable

2 visualizzazioni (ultimi 30 giorni)
John fredson
John fredson il 20 Mag 2022
Risposto: KSSV il 20 Mag 2022
May I know how to obtain column of population using readtable?

Risposta accettata

KSSV
KSSV il 20 Mag 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

Più risposte (1)

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

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by