How to display table values

38 views (last 30 days)
Brayden Kirk
Brayden Kirk on 29 Apr 2021
Commented: Brayden Kirk on 29 Apr 2021
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?

Accepted Answer

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

More Answers (0)

Categories

Find more on Matrices and Arrays in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!