Hide the size of a table without using disp?

4 visualizzazioni (ultimi 30 giorni)
Adysen
Adysen il 12 Dic 2022
Risposto: VBBV il 12 Dic 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?

Risposte (1)

VBBV
VBBV il 12 Dic 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

Categorie

Scopri di più su Tables in Help Center e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by