필터 지우기
필터 지우기

How to generate a basic table of answers?

조회 수: 2 (최근 30일)
Chelsey
Chelsey 2011년 7월 18일
I'm sure this is a very elementary process, it seems to me that it shouldn't be that hard, but for the life of me I can't figure it out: My code does some basic calculations on a large set of data; I would like for the answers to these calculations to be displayed in a table. I have:
dz = diff(dep);
drho = diff(sigth);
drhodz = drho./dz;
maxd = max(drhodz);
inum = find(drhodz==max(drhodz));
I would like to see a table with columns of maxd & inum. Any ideas?

답변 (4개)

Fangjun Jiang
Fangjun Jiang 2011년 7월 18일
h=uitable('data',rand(3,1))

Walter Roberson
Walter Roberson 2011년 7월 18일
You can use uitable() if you want to present the table in a GUI; you can use fprintf() if you want to present the table as printed output.

Sean de Wolski
Sean de Wolski 2011년 7월 18일
And to add to the list:

Fangjun Jiang
Fangjun Jiang 2011년 7월 18일
Could do this too.
a=magic(5);
open('a');

카테고리

Help CenterFile Exchange에서 Debugging and Analysis에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by