Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

MATLAB string constant is not terminated properly error when executing run.bat script in Window

1,302 views
Skip to first unread message

tony

unread,
Jun 30, 2009, 1:25:03 PM6/30/09
to
Hi All,
I am having problem to run this automation script for matlab in windowXP (it works OK in linux) . Here is matlab error
??? Error: A MATLAB string constant is not terminated properly.
This is content of the script I ran run.bat (this script is executed in a perl script)

C:\PROGRA~1\MATLAB\R2008a/bin/matlab -wait -nosplash -minimize -logfile matlab.log -r 'cd G:\xresults_build\test_flow\K.49.1\spartan3adsp\nt\adj_pe_active\run/matlab; matlabscript; quit'

I don't know how to fix it so I'd like to have your help.
Regards
Tony

Brian

unread,
Jul 9, 2009, 3:33:03 PM7/9/09
to tony

Try using double quotes around your single quotes. I just fixed a
similar problem with this.

matlab -r function("'dir'",var) or matlab -r "'cd G:\abc;
script;quit'"

it has to do with cmd prompt and spaces

Brian

Liz Sanchez

unread,
Sep 10, 2009, 7:28:03 AM9/10/09
to
"tony " <tpham1...@yahoo.com> wrote in message <h2dhpf$b1d$1...@fred.mathworks.com>...
Hi Tony, I am having the same problem did you solved it? Please let me know
Thank you
Liz
0 new messages