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!