%!demo
%! ## `tail` mirrors `head`, previewing the *bottom* of a table.  With no count it
%! ## returns the last 8 rows (or fewer if the table is short).
%!
%! n = (1:20)';
%! T = table (string (num2str (n, 'ID%02d')), datetime (2024, 1, n), ...
%!            categorical (mod (n, 3), 0:2, {'low', 'mid', 'hi'}), n .^ 2, ...
%!            'VariableNames', {'Tag', 'Date', 'Band', 'Score'});
%! tail (T)
%!
%! ## Pass a count to ask for a specific number of trailing rows.
%! tail (T, 3)
