- Make sure mainGUI is a MATLAB function and not just a script
- Make sure mainGUI is in the current folder or MATLAB's search path
How do I call a MATLAB Script using javascript?
2 ビュー (過去 30 日間)
古いコメントを表示
Hi there,
So I'm trying to set up a webpage to run a MATLAB Script. I have been trying to follow the steps from http://blogs.mathworks.com/community/2009/06/22/interactive-web-pages-in-matlab-part-4/ using matlab:COMMAND and I created a script in MATLAB named mainGUI and I called it using matlab:mainGUI.
When I try to run the script, I get the error:
Uncaught ReferenceError: mainGUI is not defined
at <anonymous>:2:8
at Object.InjectedScript._evaluateOn (<anonymous>:895:140)
at Object.InjectedScript._evaluateAndWrap (<anonymous>:828:34)
at Object.InjectedScript.evaluate (<anonymous>:694:21)
Am I using the matlab:COMMAND wrongly?
Thanks, Austin
0 件のコメント
回答 (1 件)
Dasharath Gulvady
2015 年 7 月 23 日
編集済み: Dasharath Gulvady
2015 年 7 月 23 日
参考
カテゴリ
Help Center および File Exchange で Calendar についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!