Finding maximum value, discounting a certain matrix place.
조회 수: 2 (최근 30일)
이전 댓글 표시
Hi Everyone,
Suppose I have a 1,m matrix, which I call sweep.
Suppose also, that I have identified I to be a relevant place in sweep.
What I wish to achieve is the following, except in search of the maximum value, the expression should not include the place I:
val = max(nonzeros(sweep));
How can I amend the above, to discount the place I?
Regards,
Ulrik.
댓글 수: 0
답변 (2개)
Sean de Wolski
2011년 6월 15일
sweep2(ll) = []; %ll instead to make it more readable
val = max(nonzeros(sweep2));
댓글 수: 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!