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

8 Ansichten (letzte 30 Tage)
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'.%

Akzeptierte Antwort

Mehmed Saad
Mehmed Saad am 9 Apr. 2020
ind =strcmp(files.location,'India');
files(ind,:)

Weitere Antworten (0)

Kategorien

Mehr zu Matrices and Arrays finden Sie in Help Center und File Exchange

Produkte


Version

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by