Borrar filtros
Borrar filtros

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

6 visualizaciones (últimos 30 días)
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'.%

Respuesta aceptada

Mehmed Saad
Mehmed Saad el 9 de Abr. de 2020
ind =strcmp(files.location,'India');
files(ind,:)

Más respuestas (0)

Categorías

Más información sobre Matrices and Arrays en Help Center y File Exchange.

Productos


Versión

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by