Line | |
---|
1 | function LinearVariables = depends(F) |
---|
2 | |
---|
3 | % Get all used variables in this LMI object |
---|
4 | used = []; |
---|
5 | for i = 1:length(F.clauses) |
---|
6 | Fivar = getvariables(F.clauses{i}.data); |
---|
7 | used = uniquestripped([used Fivar(:)']); |
---|
8 | end |
---|
9 | |
---|
10 | % Now, determine the involved linear variables |
---|
11 | [mt,variabletype] = yalmip('monomtable'); |
---|
12 | if any(variabletype)%1%~isempty(nlv) & any(ismembc(used,nlv(1,:))) |
---|
13 | LinearVariables = find(any(mt(used,:),1)); |
---|
14 | LinearVariables = LinearVariables(:)'; |
---|
15 | else |
---|
16 | LinearVariables = used; |
---|
17 | end |
---|
Note: See
TracBrowser
for help on using the repository browser.