Hi,can anyone help me to figure out to find the value of disp as it is being displayed as NAN

조회 수: 2 (최근 30일)
I HAVE ATTACHED THE CODE HERE
  댓글 수: 2
Geoff Hayes
Geoff Hayes 2020년 5월 13일
Dewdrop - are you referring to the disp variable? I ran your code and didn't see where it is being set (or displayed?) as NaN. By the way, I suggest that you rename this variable so that it does not conflict with the built-in MATLAB function of the same name.

댓글을 달려면 로그인하십시오.

답변 (1개)

Walter Roberson
Walter Roberson 2020년 5월 13일
rank(kk) is only 4, when it would need to be 12 .
kk has a number of rows that are all zero
Could you confirm that your bdcof variable is intended to be different than your bcodf variable? I get the impression that bcodf is a persistent typing mistake for bdcof .
  댓글 수: 2
DEWDROP
DEWDROP 2020년 5월 15일
KK matrix is singular matrix so the results are as being dispalyed as nan.is there anyway for achieving that.
Walter Roberson
Walter Roberson 2020년 5월 15일
display(disp)
but it would have been easier if you had not used disp as a variable name.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Workspace Variables and MAT-Files에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by