How to split data of a .mat file into trainH trainY testH testY as shown in picture
Show older comments

8 Comments
Arif Hoq
on 9 Mar 2022
please attach your data
uma
on 9 Mar 2022
Arif Hoq
on 9 Mar 2022
even we can't see the dimension.
trainH=1000 X 9
trainY= 1000 X ?? what ?
testH=473 X 9
testY=473 X 1
uma
on 9 Mar 2022
Arif Hoq
on 9 Mar 2022
it looks cmc.mat is a mat file with 4 variables(trainH,trainY,testH,testY)
if you open cmc.mat file you can get these 4 variables. why do you want to split these variables again from cmc.mat?
load('cmc.mat')
uma
on 9 Mar 2022
Benjamin Thompson
on 9 Mar 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.
Accepted Answer
More Answers (0)
Categories
Find more on Structures in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!