Extract data based on the name and month from the table
1 回表示 (過去 30 日間)
古いコメントを表示
Hey, all,
I have a table (25560 x 12). I want to extract data from it based on the names (from station_name column) and month names (from date column). I want to save all results on the workspace as separate tables.
for example I want to save these in my workplace:
Ahvaz_Jan
Ahvaz_Feb
Ahvaz_Mar
...
Ahvaz_Dec
then next station_name:
Abadan_Jan
Abadan_Feb
Abadan_Mar
...
Abadan_Dec
Then the next station and so on ... the year doesn't matter, I only care about name of stations and month.
I don't know how to start doing that. Can anyone help me? I attached my file.
2 件のコメント
Mohammad Sami
2020 年 1 月 26 日
Can I ask why do you want to create separate variables for each station / month combination ? If you want to further process the data later, it will just make it more complicated.
採用された回答
Image Analyst
2020 年 1 月 26 日
編集済み: Image Analyst
2020 年 1 月 26 日
Try ismember() or contains().
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Tables についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!