How can I sum all elements of a defined vector 'V' that are greater than a scalar value of 'N', that is also pre-defined?
3 ビュー (過去 30 日間)
古いコメントを表示
I have created mock variables for 'V1' and 'N', and my code goes as follows:
if V1 > N V_sum = sum(V1)
I would not be surprised if I am missing something that is blindingly obvious, but any help is greatly appreciated.
0 件のコメント
採用された回答
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Spline Postprocessing についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!