making each column a stand alone variable

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)

2 Comments

Error: A size is 4x3 and you are trying to acess A(:,4)??

Sign in to comment.

Answers (1)

Wanted = num2cell(E,1) % keep it this way, don't think of naming etc, etc...,

Categories

Asked:

on 8 Aug 2019

Edited:

on 9 Aug 2019

Community Treasure Hunt

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

Start Hunting!