Call matlab from STATA
Show older comments
Hello,
I basically want to call MATLAB from STATA to create a file, then returning the control to STATA. I have this piece of code:
cd "${REGCON_read_path}"
shell matlab -noFigureWindows -r "try; run 'regcon_cnae_map.m'; catch; end; quit" -wait
So MATLAB opens a session in the correct folder, but it seems that it just opens the script and closes it without 'clicking on run'. I would appreciate if somebody could tell me what I am doing wrong.
I guess this is the correct forum since I could well call matlab from the windows prompt instead.
KR
Accepted Answer
More Answers (1)
Rubén Pérez Sanz
on 6 Apr 2021
0 votes
Categories
Find more on Historical Contests 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!