필터 지우기
필터 지우기

Extract a sub-matrix from a very big matrix

조회 수: 2 (최근 30일)
Ajay Ganti
Ajay Ganti 2018년 2월 13일
댓글: Ajay Ganti 2018년 2월 13일
I have a matrix of size 112 x 1200. I want to separate them into 6 matrices each of size 112 x 200. How can i do it?

채택된 답변

Birdman
Birdman 2018년 2월 13일
reshape(a,[],200,6)
  댓글 수: 2
Ajay Ganti
Ajay Ganti 2018년 2월 13일
Thanks for the solution. when i applied reshape(a,[],200,6), it became as 112 x 200 x 6; Now what i want each 112 x 200 in separate variables like a1, a2, a3, a4, a5, a6. Please help
Ajay Ganti
Ajay Ganti 2018년 2월 13일
Thank you, i got it by doing as a1=a(:,:,1); and so on..

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

추가 답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by