How can I split an array?

1 view (last 30 days)
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

Answers (1)

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

Categories

Find more on Multidimensional Arrays in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!