From: Jean O'Young on
I want to post Matlab matrix results into a table on web page and add some Matlab figures. For such a simple task, do I need to buy Matlab report generator? I heard you could do it just using Matlab basic function. If anyone has an example, could you please share it with me?
Thanks,
From: Saurabh Mahapatra on
Hi Jean,

What you are looking for is the PUBLISH function in MATLAB which should meet your basic documentation needs.

>>doc publish

MATLAB Report Generator offers a lot more including the ability to use style sheets, conditional documentation and finer content control across various well-known formats.

Thanks,

Saurabh
From: TideMan on
On Jun 12, 5:27 am, "Jean O'Young" <jea...(a)hotmail.com> wrote:
> I want to post Matlab matrix results into a table on web page and add some Matlab figures.  For such a simple task, do I need to buy Matlab report generator?  I heard you could do it just using Matlab basic function.  If anyone has an example, could you please share it with me?
> Thanks,

The way I do it using basic Matlab commands is to build a .html
template with tokens in the spaces where you want to place the
calculated numbers, then read the template into Matlab and use strrep
to replace the tokens with the numbers, and save to a new .html file.
Then, you ftp that file to the web server using either the Matlab ftp
facility or (preferably) cURL.
For figures, you can simply plot them in Matlab and print them as .png
files, then ftp them to the server to replace the figures already
there.