필터 지우기
필터 지우기

How to display table values

조회 수: 36 (최근 30일)
Brayden Kirk
Brayden Kirk 2021년 4월 29일
댓글: Walter Roberson 2024년 7월 11일
I am trying to get the command window to show the actual value of my table instead of saying [1x41 double].
Below is my working out:
A=(10:0.1:14);
M; %Array of Maximum values
I; %Array of Index of Maximum values
maxtheta = theta(I);
%%Add Table with A vs M vs I
T = table(A,M,maxtheta,'VariableNames',{'a value','max db value','corresponding angle'})
When i click run, this is what it is displaying:
T =
1×3 table
a value max db value corresponding angle
____________ _____________ ___________________
[1×41 double] [1×41 double] [1×41 double]
How can I get it to show the actual values?

채택된 답변

Image Analyst
Image Analyst 2021년 4월 29일
Make them column vectors with (:)
T = table(A(:), M(:), maxtheta(:), 'VariableNames',{'a value','max db value','corresponding angle'})

추가 답변 (1개)

giada
giada 2024년 7월 10일
Hi, how to solve if the A M and matheta variables would be matrix 2x41?
thank you
  댓글 수: 5
giada
giada 2024년 7월 11일
편집: giada 2024년 7월 11일
I got to assign variables and finally that's what I get:
2×2 table
a b
____ _________
1500 1×7 table
2000 1×7 table
a nested table. I would like to see what is inside those tables!
Walter Roberson
Walter Roberson 2024년 7월 11일
You cannot get the default display of tables to expand nested tables.
table() objects are not primarily intended for display purposes. There is very little customization available for the display of table() objects.

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

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by