Publish a Function which has Input Arguments
11 ビュー (過去 30 日間)
古いコメントを表示
Hi Everyone, I am calling a function with three input arguments and I want to publish this function. The name of my function is myfunc(x,y,z). I know that my function can be published using the command publish('myfunc.m'), but i am unable to enter the input arguments using this publish command. I cannot declare these input arguments globally as it can cause other problems in my script. Can anybody please tell me how to publish a function which has input arguments ?
P.S. Note : I tried using save2pdf, export_fig, etc. to convert my figures to pdf format, but in vain as its illegal to use ghostscript in a professional environment without a commercial licence. Any kind of help would be much appreciated. Steve
0 件のコメント
採用された回答
その他の回答 (1 件)
Tennis John
2016 年 4 月 21 日
編集済み: Walter Roberson
2016 年 10 月 9 日
2 件のコメント
Steven Lord
2016 年 4 月 22 日
You never called Publish_Trials. Try this code (I haven't tested it but it should work.)
options.codeToEvaluate = 'c = 1; Publish_Trials(c)';
options.format = 'pdf';
publish('Publish_Trials.m', options);
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!