How to split data of a .mat file into trainH trainY testH testY as shown in picture
2 ビュー (過去 30 日間)
古いコメントを表示
8 件のコメント
Benjamin Thompson
2022 年 3 月 9 日
You will need to post your dataset and more comments about what you want to do in order for the Community to offer a helpful answer.
採用された回答
Arif Hoq
2022 年 3 月 9 日
My guess:
1st step: load your cmc.mat file in Variable A as a struct.
2nd step: extract your 4 variables from struct A.
A=load('cmc.mat');
trainH=A.trainH ;
trainY=A.trainY;
testH=A.testH;
testY=A.testY;
9 件のコメント
Arif Hoq
2022 年 3 月 14 日
move your mouse cursor to the variable trainH.
Right Click > save as> write your fileName (cmc)>save
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Data Import and Analysis についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!