필터 지우기
필터 지우기

How to extract data from a table based on a specific variable

조회 수: 1 (최근 30일)
Grigorios Kyritsakas
Grigorios Kyritsakas 2018년 10월 12일
댓글: Grigorios Kyritsakas 2018년 10월 15일
I have a huge csv file with 7 columns that I import into matlab as a table (see picture below).
Is there a way to split this table into smaller tables that contain all the rows with the same Asset Description? For example, I would like to create a table with all the rows where my Asset is 'Glendevon'. The different variables in the Asset Description Row are 210, which means that "manual" extract is not an option.
Thanks

채택된 답변

dpb
dpb 2018년 10월 12일
편집: dpb 2018년 10월 12일
  1. Convert the categorical variables from character representation to categorical
  2. Use findgroups and splitapply, grpstats, etc., to group by variable(s) value

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Tables에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by