Hi all,
I have 2 questions.
1- how can I save the Matlab table?
2- how can I calculating the min, max from a specific column in the table with its index and create another new one (with those data are extracted)?
Thank you

 採用された回答

MHN
MHN 2016 年 2 月 15 日

2 投票

1- Use "save" to save any variable (including tables) in workspace. For example, save the table "T" in the file "savefile.mat".
T = array2table(rand(5,10));
save('savefile.mat', 'T')
2- For example, let say you would like to find the minimum in the second column and remove the related raw from the table:
T = array2table(rand(5,10));
T1 = T;
[~, minraw] = min(T1{:,2});
T1(minraw,:)=[];

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeTables についてさらに検索

タグ

質問済み:

2016 年 2 月 15 日

回答済み:

MHN
2016 年 2 月 15 日

Community Treasure Hunt

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

Start Hunting!

Translated by