Download symbolic math toolbox for matlab 2008a
sets STATUS to 0 if the command completes without error % Y = MUPADMEX(VAL ,14) evaluates all the lazy statements % Y = MUPADMEX(VAL ,13) toggles lazy evaluation mode % Y = MUPADMEX(VAL ,12) print out memory usage % Y = MUPADMEX(VAL ,10) toggles the synchronous evaluation mode (out-of-process kernel only). ,9) returns Y as a logical instead of a sym. % Y = MUPADMEX(VAL ,8) sets the complex unit. % Y = MUPADMEX(VAL ,7) toggles the pretty-print feature. % Y = MUPADMEX(VAL ,5) toggles the trace feature. % Y = MUPADMEX(VAL ,4) formats VAL as 'symfl'. % Y = MUPADMEX(VAL ,3) formats VAL as 'symr'. % Y = MUPADMEX(STMT,2) frees any garbage. % Y = MUPADMEX(REF ,1) adds REF to the garbage list. ,0) returns Y as a string instead of a sym. % is a cell Y is a string reference instead of a sym. STMT must be a string or cell array of strings. % Y = MUPADMEX(STMT) executes STMT in MuPAD and returns the result as A cell array is converted into a MuPAD matrix or array. The corresponding M-code contains this: % MUPADMEX(STMT) executes STMT in MuPAD.
The function mupadmex() is, as the name implies, a MEX binary. Where X is the sym object, and s is a private property thereof. Here is the relevant code: allstrs = mupadmex(X.s,0) Not sure if this applies to R2012b, but on my R2010a, the class sym has a disp method, which is run when displaying your little function (and of course, all sym objects).