How can i create many tables of the main one and store them?

1 回表示 (過去 30 日間)
Elias Unk
Elias Unk 2018 年 7 月 22 日
回答済み: Image Analyst 2018 年 7 月 22 日
my_table = readtable('some.csv')
'L1' 'B'
'L2' 'B'
'L3' 'A'
'L4' 'C'
'L5' 'B'
'L6' 'C'
'L7' 'C'
'L8' 'A'
in the second column there is different values B A and C , what i want is to create smaller tables from this one depending on the value in the left, so expected outcome would be
'L1' 'B'
'L2' 'B'
'L5' 'B'
and
'L3' 'A'
'L8' 'A'
and
'L4' 'C'
'L6' 'C'
'L7' 'C'
each of them stored in a different variable for later use.Kindly note that i can give them the values C B and A to create tables using .
  1 件のコメント
madhan ravi
madhan ravi 2018 年 7 月 22 日
編集済み: madhan ravi 2018 年 7 月 22 日
Try specifying the ranges.

サインインしてコメントする。

採用された回答

Image Analyst
Image Analyst 2018 年 7 月 22 日
You forgot to attach some.csv.
You can use findgroups(), or simple comparisons. Attach your data if you need more help.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSpreadsheets についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by