on my computer i have some directories with some dozens of
images that from time to time i need to check. this task is
some how tedious because i have to check the name of the
file, then the properties and open it in a image browser to
see if i am looking at what i should.
to simplify this task i wrote a script for this.... it
opens several figures, where i also display the relevant
information that i need. this reminded me that i could use
file >> publish to html function. and it turns out ok....
the thing is that i want to change the script into a
function, i give a path to a directory as an input argument
and the function calls the publish to html function... this
would avoid making html code....
i have check the matlab's manual but i couldn't get anything
on this.... looking for examples i saw the m2html tollbox
but it does it by making html code or something like that
for a template.....
You can't currently publish functions. One workaround would
be to assign this variable in the base workspace, say
"file", and then have your script refer to that same
variable (since it is evaluated in the base workspace).
NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for
all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content.
Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available
via MATLAB Central.
Read the complete Terms prior to use.