WJA
WJA

Reputation: 7004

How to display a table with Matlab Publish

I am using Matlab publish to create reports:

% Main function
publish('weeklyReport');

% weeklyReport.m

%% First Section
% This is the first section.

T = array2table(rand(5,3));

How can I subsequently publish this to the report? If I do not include the semicolon ; then it is shown. However, is there another way to force append it?

Upvotes: 0

Views: 1846

Answers (2)

Ehsan Kaka
Ehsan Kaka

Reputation: 11

you can use writetable function:

writetable(T,[fname '.xlsx'])

Upvotes: 1

WJA
WJA

Reputation: 7004

As pointed out by @Wolfie in the comments, you can easily achieve this by disp(T).

Upvotes: 0

Related Questions