Compile executable with another function
1 view (last 30 days)
Show older comments
I have a GUI executable that has a button which, when pressed, calls a function which uses textscan to import a data file (.csv).
Is it possible to call this function while it is compiling, so the data file is already "loaded" into the exe?
0 Comments
Answers (1)
Image Analyst
on 14 Mar 2013
Yes, sort of. You don't call it while it's compiling. It compiles it without calling (executing) the function. It wouldn't make sense to call it while it's compiling, but it does get included in the compiled code. You just need to put the main m-file and it finds all the dependent m-files that it needs automatically. You just need to have the (very expensive) MATLAB Compiler Toolbox.
See Also
Categories
Find more on MATLAB Compiler in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!