"Matrix close to singular or badly scaled" after using squeeze function for mnrfit
조회 수: 3 (최근 30일)
이전 댓글 표시
Hi all!
I am trying to use mnrfit on two matrices, but get the following error message:
> In mnrfit>nominalFit (line 455)
In mnrfit (line 202)
In samplecode(line 28)
Warning: Matrix is close to singular or badly scaled. Results may be inaccurate. RCOND = 4.731375e-21.
My matrix A has 1 column and 200 rows, and my matrix B has 300 columns and 200 rows. I think the problem may be due to how I define B:
B = squeeze(data(:,50,:));
Indeed data is a 3D matrix and I want it to be a 2D matrix.
Once I have B, I simply do:
C = mnrfit(B,A);
Any help would be very much appreciated Many thanks
댓글 수: 3
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!