필터 지우기
필터 지우기

making outputs in unique sheet

조회 수: 1 (최근 30일)
som
som 2012년 1월 22일
Hi all
I've written a program having some outputs. I aim to see all these output in one sheet (I mean one variable editor of Matlab) . I also want to see the variables with their names/labels in each column .
for example:
There are four variables named "a", "b", "c", "d" which they are array and the aime is to make these output beside eachother like below:
a b c d
81.0 63.0 95.0 95.0
90.0 9.0 96.0 48.0
12.0 27.0 15.0 80.0
91.0 54.0 97.0 14.0
How can I do it?
How about outputs in the form of 'matrix' or 'cell' ?
thanks,

채택된 답변

Walter Roberson
Walter Roberson 2012년 1월 22일
[ {'a'}, {'b'}, {'c'}, {'d'};
num2cell(a(:)), num2cell(b(:)), num2cell(c(:)), num2cell(d(:))]
  댓글 수: 1
som
som 2012년 1월 22일
Thanks for the answer.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Multidimensional Arrays에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by