issingular.m

来自「多小波图像压缩处理」· M 代码 · 共 23 行

M
23
字号
function yesno = issingular(S)[n1,n2,n3] = size(S);if (n1 ~= n2 | n3 > 1)    yesno = 1;    returnend% try to simplify firstn = size(S);S = reshape(simplify(S(:)),n);try     S = double(S);    yesno = iszero(det(S));catch% if S contains symbolic variables without numerical values,% the conversion to "double" will fail. Then we end up here.% We do the same thing, except this time the determinant% is symbolic    yesno = iszero(simplify(det(S)));end

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?