Hide the size of a table without using disp?

1 view (last 30 days)
Adysen
Adysen on 12 Dec 2022
Answered: VBBV on 12 Dec 2022
I have a table and I'm trying to hide the size of the table that's shown at the top. Is there an alternative function that could be used to display the table while suppressing the size?

Answers (1)

VBBV
VBBV on 12 Dec 2022
X = randi([0 10],10,1);
Y = randi([0 100],10,1);
% display table with size
T = table(X,Y)
T = 10×2 table
X Y __ __ 8 88 2 59 10 78 5 42 0 40 0 95 6 3 6 49 4 98 10 91
% display table without showing size of table using fprintf
fprintf('%d\t%d\n',[T.X.';T.Y.'])
8 88 2 59 10 78 5 42 0 40 0 95 6 3 6 49 4 98 10 91

Categories

Find more on Tables in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!