Why do my values not match data on plot?

When using the find(ismember()) it comes up with an empty value.
Can anyone explain why?/how it isn't working?
Thanks

댓글 수: 1

It was a rounding error, I had to add
zz=rouund(zz,4);
and then it worked fine

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

답변 (1개)

the cyclist
the cyclist 2018년 5월 13일

0 개 추천

My best guess on why
find(ismember())
is not working is that the number you are looking for is not exactly represented in floating point. You could try ismembertol.
Can you upload a MAT file with the value of T in it, and tell us exactly which point you are looking for?

카테고리

도움말 센터File Exchange에서 Portfolio Optimization and Asset Allocation에 대해 자세히 알아보기

질문:

2018년 5월 13일

편집:

2018년 5월 13일

Community Treasure Hunt

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

Start Hunting!

Translated by