making each column a stand alone variable

1 次查看(过去 30 天)
Let's assume A=[B C D]
B=[1;2;3;4]
C=[5;6;7;8]
D=[0;4;3;2]
E=A'
how do I automatically make
F=A(:,1)
G=A(:,2)
H=A(:,3)
J=A(:,4)

回答(1 个)

madhan ravi
madhan ravi 2019-8-8
编辑:madhan ravi 2019-8-8
Wanted = num2cell(E,1) % keep it this way, don't think of naming etc, etc...,

类别

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

Community Treasure Hunt

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

Start Hunting!

Translated by