Splitting matrix into arrays

 Risposta accettata

Robin Kirsch
Robin Kirsch il 9 Mag 2020

0 voti

I assume that you want to split a 2x1000 matrix into 2 1x1000 vectors.
A simple solution to do this is to extract each row, if A is your 2x1000 then you get the 1x1000 with
B = A(1,:) and C = A(2,:).
You can for-loop over this for x dimensional matrices

Più risposte (0)

Categorie

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by