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!