"WASSIM " <
mhiri...@gnet.tn> wrote in message <ksbi0p$ei4$
1...@newscl01ah.mathworks.com>...
Hi everyone,
I am having the same kind of issue...
Has this ever been resolved?
Also, the link posted above is broken:(
http://www.mathworks.com/support/solutions/en/data/1-97WVV6/?solution=1-97WVV6)
My code is the following:
[...]
for d = 1:sizeOfSomething
functionOpts.codeToEvaluate=['fullFileList{d}', char(10),'my_func(fullFileList{d})'];
functionOpts.evalCode = true;
functionOpts.format = 'html';
functionOpts.outputDir = savingPath;
publish('my_func',functionOpts);
end
[...]
Error using ==> evalin
Undefined function or variable 'd'.
The error I am getting is that the "code to be evaluated" does not know 'd'.
Then I tried replacing 'fullFileList{d}' by it's actual string but I get another error (Unexpected MATLAB Operator).
Does anybody knows what is wrong here? Also, what is the purpose of the "newline" in the middle (char(10))?
Thanks