making each column a stand alone variable

1 vue (au cours des 30 derniers jours)
DARLINGTON ETAJE
DARLINGTON ETAJE le 8 Août 2019
Modifié(e) : Stephen23 le 9 Août 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)
  2 commentaires
KALYAN ACHARJYA
KALYAN ACHARJYA le 8 Août 2019
Error: A size is 4x3 and you are trying to acess A(:,4)??
Stephen23
Stephen23 le 9 Août 2019
Modifié(e) : Stephen23 le 9 Août 2019

Connectez-vous pour commenter.

Réponses (1)

madhan ravi
madhan ravi le 8 Août 2019
Modifié(e) : madhan ravi le 8 Août 2019
Wanted = num2cell(E,1) % keep it this way, don't think of naming etc, etc...,

Community Treasure Hunt

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

Start Hunting!

Translated by