Usual Simulink.fileGenControl 'CodeGenFolder' setting does not influence the path where the files are generated when calling:
legacy_code('sfcn_cmex_generate', def);legacy_code('compile', def);legacy_code('slblock_generate',def);
I could only achieve to modify the path by changing the cwd in the script, but that seems ugly. Is there a proper way?
Best Answer