Error using SOSTOOLS, FINDLYAP() function

1 view (last 30 days)
Matthew Osborne
Matthew Osborne on 13 Jul 2020
Commented: Yi ling on 3 Apr 2023
Hi,
I'm not sure how to fix this error. I tried using str2sym() function to create the variables instead of syms but I get the same error. I'm following the 2016 SOSTOOLS manual but using MATLAB 2019b with the latest SOSTOOLS github files.
>> syms x1 x2;
>> V = findlyap(f,[x1; x2],2)
Error using sym>convertChar (line 1548)
Character vectors and strings in the first argument can only specify a variable or number. To evaluate character vectors and strings representing symbolic
expressions, use 'str2sym'.
Error in sym>tomupad (line 1255)
S = convertChar(x);
Error in sym (line 222)
S.s = tomupad(x);
Error in mysympower (line 58)
ZTemp = sym(ZTemp);
Error in findlyap (line 96)
expr1 = expr1 - epsmat(i,:) * mysympower(vars(i),[2:2:degree]');
Thanks,
Matt
  1 Comment
Yi ling
Yi ling on 3 Apr 2023
Hello! Sorry I come late. You can download the newest version of SOSTOOLS, which is SOSTOOLS.304.zip here.
But I cannot ensure that this will help you. Just try it. I have tried and the problem is solved.

Sign in to comment.

Answers (0)

Community Treasure Hunt

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

Start Hunting!