Filter löschen
Filter löschen

Extract a sub-matrix from a very big matrix

2 Ansichten (letzte 30 Tage)
Ajay Ganti
Ajay Ganti am 13 Feb. 2018
Kommentiert: Ajay Ganti am 13 Feb. 2018
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?

Akzeptierte Antwort

Birdman
Birdman am 13 Feb. 2018
reshape(a,[],200,6)
  2 Kommentare
Ajay Ganti
Ajay Ganti am 13 Feb. 2018
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 am 13 Feb. 2018
Thank you, i got it by doing as a1=a(:,:,1); and so on..

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Matrix Indexing finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by