Funny bug with respect to NaN value,

declare X as
X = [1 2 3 4 NaN];
and then use,
max(X) yields, 4
min(X) yields, 1
but in workspace the Min and Max column displays NaN and NaN,
[PS : I agree that NaN values are always ignored.]
Is this a required feature or a bug ?

댓글 수: 2

Jan
Jan 2013년 3월 4일
What exactly is "in workspace"? Do you mean the workspace browser? If so, which Matlab version are you using?
Anil
Anil 2013년 3월 5일
Its the workspace window or browser of Matlab, I noticed it in both R2007b and R2012a

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

 채택된 답변

Andreas Goser
Andreas Goser 2013년 3월 5일

1 개 추천

This is an intended feature in the workspace browser in MATLAB 7.9 (R2009b). The Min and Max values in the workspace browser do not ignore NaN by default. You can make the workspace browser ignore NaN by changing the settings under Preferences->Workspace.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Workspace Variables and MAT Files에 대해 자세히 알아보기

태그

질문:

2013년 3월 4일

Community Treasure Hunt

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

Start Hunting!

Translated by