making each column a stand alone variable

1 view (last 30 days)
DARLINGTON ETAJE
DARLINGTON ETAJE on 8 Aug 2019
Edited: Stephen23 on 9 Aug 2019
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)

Answers (1)

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

Categories

Find more on Programming 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!