How to split data of a .mat file into trainH trainY testH testY as shown in picture
3 次查看(过去 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!