How can I split an array?

1 次查看(过去 30 天)
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

回答(1 个)

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

类别

Help CenterFile Exchange 中查找有关 Multidimensional Arrays 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by