Problem running compiled MATLAB code

Hello,
I have an m-file called merger.m and I compiled it by typing "mcc -m merger.m" into the command prompt window. It gave me the executable merger.exe just fine. merger.m works, but when I try to run merger.exe, it gives me the following error:
"Undefined command/function 'corner'.
Error in ==> merger>mergeImages at 139
Error in ==> merger at 65
MATLAB:UndefinedFunction"
corner is the MATLAB function in the Image Processing Toolbox. How do I fix this?
Thanks

 採用された回答

Image Analyst
Image Analyst 2015 年 4 月 11 日

1 投票

Look in the "mcc excluded log.txt" file (or whatever it's called). Is corner() listed in there? If so, you're out of luck and will have to write it yourself rather than use the built-in function. If it's not in there, then call tech support.

3 件のコメント

D W
D W 2015 年 4 月 13 日
Hi, how would I find this file?
Image Analyst
Image Analyst 2015 年 4 月 13 日
Look for a file called "mccExcludedFiles.log" in whatever folder you told it to put your final output executable - wherever your merger.exe is located, which for your command line will be the current folder. If the file is not there then there are probably no files that are excluded.
D W
D W 2015 年 4 月 13 日
Alright, thank you.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeIntroduction to Installation and Licensing についてさらに検索

質問済み:

D W
2015 年 4 月 11 日

コメント済み:

D W
2015 年 4 月 13 日

Community Treasure Hunt

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

Start Hunting!

Translated by