I have 3*3 Matrix. I have to save these matrix into 3*1 form means i have to save only (1,3) (2,3) and (3,3). other (1,1), (1,2).........(2,3) remove.

1 visualizzazione (ultimi 30 giorni)
S
S = (:,:,1:20)

Risposta accettata

Kirby Fears
Kirby Fears il 16 Ott 2015
S2 = S(:,3,:);
This indexing means something like (all rows, third column only, all 3D). This means S2 will be a 3x1x20 array of type double.
Hope this helps.

Più risposte (0)

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by