I am creating a stand-alone application using "mcc -mv foo.m" for my matlab code. In my code, I am using "assignin('base',var_name,var_value)" to assign value to variables. I read the variable values from a file and then assign those values to respective variables. What I am finding is that when I run the created executable, it actually remembers the old values that I had used during development/testing. How is it possible? Does mcc include workspace variables and their values at the time of creating stand-alone executables and does not override their values by assignin? I am currently using Matlab 2017a. My code has worked fine with 2014a in the past. I am using Matlab on Linux.
MATLAB: Assignin variables in a stand-alone application
assigninMATLAB Compilermccstandalone
Related Question
- How to deploy a matlab code that saves .mat files files to communicate between functions, and saves data in the local directory
- What does addpath do and why should I use it when I am compiling a code in matlab
- Where are “files installed for your end user” are saved in the installation directory using compiler
- How to keep data connections when building standalone .exe
- Can I add additional non-matlab executables to the compiled Matlab application on Linux
- Matlab standalone application default directory is cache directory
Best Answer