How can I split an array?
Show older comments
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
on 24 Jul 2021
Vw1=Vw(:,1);
Vw2=Vw(:,2);
Vw3=Vw(:,3);
Vw4=Vw(:,4);
Categories
Find more on Structures in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!