How to display table values
显示 更早的评论
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?
采纳的回答
更多回答(1 个)
giada
2024-7-10
0 个投票
Hi, how to solve if the A M and matheta variables would be matrix 2x41?
thank you
5 个评论
Image Analyst
2024-7-10
Try
T = table(A, M, maxtheta, 'VariableNames',{'a value','max db value','corresponding angle'})
Walter Roberson
2024-7-11
giada
2024-7-11
Thank you, the problem is that the number of splitted columns varies and it is necessary to assign a different name to each of them (otherwise table command returns error). I do not know how to assign variable with varying name in a for cycle
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.
类别
在 帮助中心 和 File Exchange 中查找有关 Tables 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!