sym('do') or 'syms do' fails

17 visualizaciones (últimos 30 días)
Daniel
Daniel el 9 de Jul. de 2013
Both of these fail in MATLAB R2012a and MATLAB R2010b:
syms do
sym('do')
The error message in R2010b is:
>> syms do
??? Error using ==> mupadmex
Error in MuPAD command: Unexpected 'do' [line 1, col 18]
Error in ==> sym.sym>convertName at 2496
s = mupadmex('symobj::fixupVar',x,0);
Error in ==> sym.sym>convertChar at 2424
s = convertName(x);
Error in ==> sym.sym>convertCharWithOption at 2410
s = convertChar(x);
Error in ==> sym.sym>tomupad at 2164
S = convertCharWithOption(x,a);
Error in ==> sym.sym>sym.sym at 111
S.s = tomupad(x,'');
Error in ==> syms at 77
assignin('caller',x,sym(x));
>> sym('do')
??? Error using ==> mupadmex
Error in MuPAD command: Unexpected 'do' [line 1, col 18]
Error in ==> sym.sym>convertName at 2496
s = mupadmex('symobj::fixupVar',x,0);
Error in ==> sym.sym>convertChar at 2424
s = convertName(x);
Error in ==> sym.sym>convertCharWithOption at 2410
s = convertChar(x);
Error in ==> sym.sym>tomupad at 2164
S = convertCharWithOption(x,a);
Error in ==> sym.sym>sym.sym at 111
S.s = tomupad(x,'');
Am I doing something wrong or is this expected behavior?

Respuestas (0)

Productos

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by