Info

この質問は閉じられています。 編集または回答するには再度開いてください。

Find Average of elements having less difference among each other

1 回表示 (過去 30 日間)
Tahir Mahmood
Tahir Mahmood 2019 年 4 月 5 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
Hi, Lets say, A=[20,10,22,10,12]. I want to calculate the difference among each element in the A. If the difference is less than 5 or 0, then average all that elements. So for this case, the result will be.
(20+22)/2 and (10+10+12)/3
Result=[21,10]. How to do it?

回答 (0 件)

この質問は閉じられています。

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by