making each column a stand alone variable

조회 수: 1 (최근 30일)
DARLINGTON ETAJE
DARLINGTON ETAJE 2019년 8월 8일
편집: Stephen23 2019년 8월 9일
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
KALYAN ACHARJYA
KALYAN ACHARJYA 2019년 8월 8일
Error: A size is 4x3 and you are trying to acess A(:,4)??
Stephen23
Stephen23 2019년 8월 9일
편집: Stephen23 2019년 8월 9일

댓글을 달려면 로그인하십시오.

답변 (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에서 Axis Labels에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by