How to crate datastore for .mat file dataset?

조회 수: 18 (최근 30일)
john karli
john karli 2021년 11월 12일
댓글: yanqi liu 2021년 11월 12일
I have 3 classes and each class contain 2000 sample of .mat. for example
2PSK
fram2psk1.mat, fram2psk2.mat, fram2psk3.mat, fram2psk4.mat, ......... fram2psk2000.mat,
4PSK
fram4psk1.mat, fram4psk2.mat, fram4psk3.mat, fram4psk4.mat, ......... fram4psk2000.mat,
8PSK
fram8psk1.mat, fram8psk2.mat, fram8psk3.mat, fram8psk4.mat, ......... fram8psk2000.mat,
How do i crate a datastore to train modeil on this dataset

답변 (2개)

KSSV
KSSV 2021년 11월 12일

yanqi liu
yanqi liu 2021년 11월 12일
편집: yanqi liu 2021년 11월 12일
sir,may be use cell to save the data in mat file,such as
[XTrain,YTrain] = japaneseVowelsTrainData
XTrain = 270×1 cell array
{12×20 double} {12×26 double} {12×22 double} {12×20 double} {12×21 double} {12×23 double} {12×22 double} {12×18 double} {12×24 double} {12×15 double} {12×23 double} {12×15 double} {12×17 double} {12×14 double} {12×14 double} {12×15 double}
YTrain = 270×1 categorical array
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
  댓글 수: 2
john karli
john karli 2021년 11월 12일
How do i add a label like
includesubfolder = true
yanqi liu
yanqi liu 2021년 11월 12일
sir,i think use Y to define label,such as Y{1} = 'folder1'

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 BPSK에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by