how to use read variable

1 view (last 30 days)
John fredson
John fredson on 20 May 2022
Answered: KSSV on 20 May 2022
May I know how to obtain column of population using readtable?

Accepted Answer

KSSV
KSSV on 20 May 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

More Answers (1)

Jan
Jan on 20 May 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