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 で Creating and Concatenating Matrices についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!