Hi there
I am receiving the following error message:
Warning: Matrix is singular, close to singular or badly scaled. Results may be inaccurate. RCOND = NaN.
> In mpower>integerMpower (line 80)
In ^ (line 49)
In gaussfit (line 111)
The line in question is:
a = (F2)^(-1)*F'*(y-f0) + a0;
I wish to suppress, not solve, this problem and so I added the following to the beginning of my script, and yet still receive the error message. What am I doing wrong?
warning('off','MATLAB:singularMatrix')
4 Comments
Direct link to this comment
https://www.mathworks.com/matlabcentral/answers/599773-how-to-suppress-this-error#comment_1024222
Direct link to this comment
https://www.mathworks.com/matlabcentral/answers/599773-how-to-suppress-this-error#comment_1024222
Direct link to this comment
https://www.mathworks.com/matlabcentral/answers/599773-how-to-suppress-this-error#comment_1024669
Direct link to this comment
https://www.mathworks.com/matlabcentral/answers/599773-how-to-suppress-this-error#comment_1024669
Direct link to this comment
https://www.mathworks.com/matlabcentral/answers/599773-how-to-suppress-this-error#comment_1024690
Direct link to this comment
https://www.mathworks.com/matlabcentral/answers/599773-how-to-suppress-this-error#comment_1024690
Direct link to this comment
https://www.mathworks.com/matlabcentral/answers/599773-how-to-suppress-this-error#comment_1024696
Direct link to this comment
https://www.mathworks.com/matlabcentral/answers/599773-how-to-suppress-this-error#comment_1024696
Sign in to comment.