how to use read variable

2 次查看(过去 30 天)
John fredson
John fredson 2022-5-20
回答: KSSV 2022-5-20
May I know how to obtain column of population using readtable?

采纳的回答

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

更多回答(1 个)

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

类别

Help CenterFile Exchange 中查找有关 Logical 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by