Why is the min() and max() function throwing an error?
18 次查看(过去 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!