9 lines
117 B
Mathematica
9 lines
117 B
Mathematica
|
|
function b = yalmipbandwidth(S)
|
||
|
|
|
||
|
|
if isa(S,'sdpvar')
|
||
|
|
S = spy(S);
|
||
|
|
end
|
||
|
|
[i,j] = find(triu((S)));
|
||
|
|
b = max(abs(i-j));
|
||
|
|
|