Why is the min() and max() function throwing an error?
조회 수: 7 (최근 30일)
이전 댓글 표시
I have the following vector and am trying to find the minimum and maximum values using the min() and max() functions.
However, it throws the following error:
??? Subscript indices must either be real positive integers or logicals.
Looking online, minval = min(outFHN); should return the minimum value of the vector but it is not working.
I attached the vector to this post if anyone would like to try.
Thanks for the help
댓글 수: 0
채택된 답변
David Fletcher
2018년 3월 31일
min(outFHN)
ans =
-4.1601
I would assume that you have a variable called min in your workspace which is shadowing the min function
댓글 수: 2
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Logical에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!