|
Hi everyone,
I got recently a strange behavior with the publish function.
My code creates a m-file with embedded html tags: this file
is then passed to "publish" in order to generate the html.
The part of the code which fails is the publish command, and
it is something like
%% Create html
options.evalCode = 'false';
options.outputDir = 'OutputPathName';
publish(fullfile(InputPathName,FileName),options);
Where FileName is my m-file with embedded html.
The problem I get is that if I choose to store the output in
the current directory (where all the main scripts are
located), it works; if I choose a different location it fails!!
In both cases there is a previous routine which creates if
necessary the required directories!
The error I get is:
??? Operands to the || and && operators must be convertible
to logical scalar values.
Error in ==> publish at 109
elseif
~strcmpi(strrep(fullPathToScript,'/',filesep),which(file))
&& ...
Any idea of the problem source?!?
Thanks everyone!
Stefano
|