finding the mean/average of the smallest values in a row

4 ビュー (過去 30 日間)
Ach
Ach 2018 年 2 月 25 日
回答済み: Bhuvnesh Singh 2018 年 2 月 28 日
hi i have a row and i want to find the average of the smallest values (minimums) and the position of this element

採用された回答

Bhuvnesh Singh
Bhuvnesh Singh 2018 年 2 月 28 日
To achieve this you can use function min and function mean
Lets say
A = [1.7 1.2 1.5; 1.3 1.6 1.99]
% use min function to get smallest element from each row.
M = min(A,[],2)
% use mean function
result = mean(M)
Follow the below links for more information:

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeOperators and Elementary Operations についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by