📄 issingular.m
字号:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -