How to split data of a .mat file into trainH trainY testH testY as shown in picture
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
8 comentarios
Benjamin Thompson
el 9 de Mzo. de 2022
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.
Respuesta aceptada
Arif Hoq
el 9 de Mzo. de 2022
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 comentarios
Arif Hoq
el 14 de Mzo. de 2022
move your mouse cursor to the variable trainH.
Right Click > save as> write your fileName (cmc)>save
Más respuestas (0)
Ver también
Categorías
Más información sobre Data Import and Analysis en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!