From: yjneu ? on
Maybe u use the last version of Matlab. Try to use Matlab 7.0 to test ur program.
-----------------------------
"Roberto Angelone" <robi3___(a)hotmail.it> wrote in message <hepfh9$ac6$1(a)fred.mathworks.com>...
> Hi,
> I have a problem with sostools.
> I installed sostool, sdpt3 and the maple toolbox, but I always get this error when I try to run the demo of the sostool...
>
> syms x1 x2 x3;
> vars = [x1; x2; x3];
>
> % Constructing the vector field dx/dt = f
> f = [-x1^3-x1*x3^2;
> -x2-x1^2*x2;
> -x3+3*x1^2*x3-3*x3/(x3^2+1)];
>
> % =============================================
> % First, initialize the sum of squares program
> prog = sosprogram(vars);
>
> % =============================================
> % The Lyapunov function V(x):
> [prog,V] = sospolyvar(prog,[x1^2; x2^2; x3^2],'wscoeff');
> ??? Error using ==> maple at 174
> Error using ==> maplemex
> `]` unexpected
>
> Error in ==> getdegrees at 39
> maple(['vartable :=',vartable,':']);
>
> Error in ==> sosvar at 47
> Z = getdegrees(sym2chartable(ZSym),sos.vartable);
>
> Error in ==> sospolyvar at 52
> [sos,V] = sosvar(sos,'poly',ZSym);
>
> Error in ==> sosdemo2 at 20
> [prog,V] = sospolyvar(prog,[x1^2; x2^2; x3^2],'wscoeff');
>
> What can I do?
>
> Thanks