フィルターのクリア

Publish pdf from compiled executable via MCR

4 ビュー (過去 30 日間)
Chris
Chris 2013 年 7 月 31 日
Hi,
I'm trying to use the publish function in a compiled set of code on a customers site.
I've made this simple function to illustrate the problem.
function PublishPdfTest
CurrentDirectory = pwd;
doc_options.format = 'pdf';
doc_options.showCode = false;
mkdir('TEST_REPORT');
doc_options.outputDir = [CurrentDirectory '\TEST_REPORT'];
try
publish('SomeFunction.m',doc_options)
catch err
save('error.mat','err')
end
end
Where SomeFunction.m
function SomeFunction
for ii = 1:3
figure
plot(rand(50,1))
end
close all
end
I then compile using
mcc -e -R '-Logfile,PublishPdfTest.err' PublishPdfTest
When I run the .exe i get the following err
load('error.mat')
err.message = 'Undefined function or variable 'publish''
Is the functionality of the matlab function publish avalible to standalone executable via the MCR ?
I'm running matlab 2013a on windows XP with MCR for 2013a installed.
are there any alternative methods of producing pdfs
Thanks in advance.
Chris

採用された回答

Julian
Julian 2013 年 7 月 31 日
the short answer to your question would be NO, see http://www.mathworks.co.uk/help/compiler/unsupported-functions.html
Probably not what you wanted to hear (nor me).

その他の回答 (1 件)

Chris
Chris 2013 年 8 月 1 日
Thanks Julian.
At least i know now.
Cheers

カテゴリ

Help Center および File ExchangeIntroduction to Installation and Licensing についてさらに検索

タグ

製品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by