How to import data from .csv file, from specific columns of a row, into an array

6 ビュー (過去 30 日間)
Anaya Kharwadkar
Anaya Kharwadkar 2020 年 9 月 15 日
コメント済み: Anaya Kharwadkar 2020 年 9 月 16 日
I want to import data from one row of a .csv file into an array. But, I do not want all columns in the array. I want columns E through to the end of row 263 in my array.
I tried the following code:
GDPperCapita = importdata('GDP.csv')
array = GDPperCapita(261,5:end)
but I am getting an empty cell array: (Output)
array =
1×0 empty cell array
I have attached an image to give a clear idea of the cells I want in my array:

回答 (0 件)

カテゴリ

Help Center および File ExchangeMatrices and Arrays についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by