Reputation: 3
Here's the code used in my .bat file
phreeqc first_trial_um_b.pqi
matlab -sd "C:\trialbatch" -r "clean_output.m"
matlab -sd "C:\trialbatch" -r "getCa.m"
pause
The phreeqc part works just fine, however the matlab code somehow doesn't run. When I type the matlab code manually into DOS, it works flawlessly.
Upvotes: 0
Views: 2052
Reputation: 67206
What type of file is phreeqc? If it is a Batch file: phreeqc.bat, then the lines following it will never be executed. To fix it, you must include a CALL command to execute phreeqc:
call phreeqc first_trial_um_b.pqi
matlab -sd "C:\trialbatch" -r "clean_output.m"
matlab -sd "C:\trialbatch" -r "getCa.m"
pause
Upvotes: 2