How to split one big matrix into several matrices?

조회 수: 2 (최근 30일)
KAI-YANG WANG
KAI-YANG WANG 2021년 8월 8일
댓글: KAI-YANG WANG 2021년 8월 11일
I'm trying to split a 100000x2048 matrix into 100000 32x32x2 matrices and then put it into convolutional neural network as 100000 data set, could anyone help, please. Thank you.

채택된 답변

DGM
DGM 2021년 8월 9일
Consider:
A = rand(100E3,2048);
C = num2cell(A,2);
C = cellfun(@(x) reshape(x,32,32,2),C,'uniform',false);
  댓글 수: 3
DGM
DGM 2021년 8월 11일
I don't know anything about using a CNN, so I don't know what sort of datatype you need everything stored in. I imagine that getting it into a cell array would at least facilitate conversion to whatever you need though.
KAI-YANG WANG
KAI-YANG WANG 2021년 8월 11일
I see, thank you so much though.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Image Data Workflows에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by