Azzera filtri
Azzera filtri

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

6 visualizzazioni (ultimi 30 giorni)
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'.%

Risposta accettata

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

Più risposte (0)

Categorie

Scopri di più su Matrices and Arrays in Help Center e File Exchange

Prodotti


Release

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by