Regarding exe file created from Matlab Compiler.
Show older comments
I am currently in last semester of B.E. and my project is based on gesture recognition. So I have done blob analysis to identify rgb color tape. So by these three colors I can create different gestures. By every gestures I can do different activities like mouse move, left click, right click, drag and drop and many other things. Now I want to create windows standalone application using Matlab Compliler. I had follow the same procedure. First add main file, install MCR. But still there are several issues. The issues are as below:
- After creating .exe file, to run that file it would take lot of time. I don't know why is this so?
- This would be major one. Well, in .m file I have used red and blue color to do several actions. I have called java class for that. ".m" file runs completely fine. But the same thing for .exe there is problem. I have run the .exe file.
(Info: To move the mouse I have used single red color and for left and right click I have used red and blue color together.) In .exe file if I take red color in front of webcam to move mouse then it will run. But whenever I take blue color with red color in front of webcam to do right click or left click then .exe file gets terminated. I don't know why my .exe file gets terminated. Please help me with this.
Accepted Answer
More Answers (1)
Image Analyst
on 18 May 2013
Regarding crashes, run it in a console window like Walter recommends. Also, make sure your functions have a try/catch so you can see what went wrong.
try
% Some code that may produce an error.
catch ME
errorMessage = sprintf('Error in function blah_blah_blah().\n\nError Message:\n%s', ME.message);
fprintf(1, '%s\n', errorMessage);
uiwait(warndlg(errorMessage));
end
Categories
Find more on Language Support in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!