How can I split an array?

1 Ansicht (letzte 30 Tage)
Luis Adrián Ferré Covantes
Hi everyone, how can I separate an array into several? For example, I have:
Vw=[2000x4] double
And I need:
Vw1=[2000x1] double
Vw2=[2000x1] double
Vw3=[2000x1] double
Vw4=[2000x1] double
...Thanks

Antworten (1)

Sulaymon Eshkabilov
Sulaymon Eshkabilov am 24 Jul. 2021
Vw1=Vw(:,1);
Vw2=Vw(:,2);
Vw3=Vw(:,3);
Vw4=Vw(:,4);

Kategorien

Mehr zu Multidimensional Arrays finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by