R2010a: publish -> dbstatus -> " Error using ==> dbstatus"
Show older comments
Hallo people,
I would like to know how to publish files containing absolulte paths.
By using publish, Im experiencing problems with the file name as an accepted argument.
publish('file', options) - publishes file.m by running it in the base workspace, one cell at a time
First it didnt accept absolute paths, so I had to change the sourse code of publish.
function options = setCodeToEvaluateIfEmpty(file,options,fullPathToScript)
if isempty(options.codeToEvaluate)
% cmd = regexprep(file,'.*[\\/]','');
% cmd = regexprep(cmd,'\.m$','');
% Do a case insensitve match because the PC is case-insensitve.
% if ~strcmpi(strrep(fullPathToScript,'/',filesep),which(file)) && ...
% (options.evalCode==true)
% pathMessage = 'PUBLISH needs to run the M-file because the evalCode option is set,\nbut the M-file is not on the MATLAB path.';
% error('MATLAB:publish:OffPath',pathMessage)
% end
options.codeToEvaluate = file;
end
Now Im blocked in evalmxdom.m->instrumentAndRun (Line 51 ) :
originalDbstatus = dbstatus(file);
" Error using ==> dbstatus"
Could anyone help with it this problem ? I would like to know how to publish files containing absolulte paths.
Best regards,
Answers (0)
Categories
Find more on Clocks and Timers in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!