Effacer les filtres
Effacer les filtres

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

6 vues (au cours des 30 derniers jours)
barath V
barath V le 9 Avr 2020
Commenté : barath V le 9 Avr 2020
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'.%

Réponse acceptée

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

Plus de réponses (0)

Catégories

En savoir plus sur Matrices and Arrays dans Help Center et File Exchange

Produits


Version

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by