how do i extract columns with specific row names from .csv file

3 ビュー (過去 30 日間)
barath V
barath V 2020 年 4 月 9 日
コメント済み: barath V 2020 年 4 月 9 日
clc
clear all
file = fullfile('C:\Users\barath\Downloads\full_data.csv')
files = readtable(file)
in = files.location('India',:)
%error i get is: Error using tabular/dotParenReference (line 95)Unrecognized row name 'India'.%

採用された回答

Mehmed Saad
Mehmed Saad 2020 年 4 月 9 日
ind =strcmp(files.location,'India');
files(ind,:)

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGet Started with MATLAB についてさらに検索

製品


リリース

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by