how can i find the average of every single raw in a matrix without using sum or mean function ?

3 ビュー (過去 30 日間)
rama ayoub
rama ayoub 2020 年 1 月 15 日
回答済み: Andrei Bobrov 2020 年 1 月 15 日
sc=[80,88,76,75;62,45,74.3,79;83,77.3,91,89.8;90.9,86.7,68,96.1;93,95.5,98,92;79,58,85,81.7]

回答 (1 件)

Andrei Bobrov
Andrei Bobrov 2020 年 1 月 15 日
n = size(sc,2);
out = sc*ones(n,1)/n;

カテゴリ

Help Center および File ExchangeGet Started with MATLAB についてさらに検索

製品


リリース

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by