필터 지우기
필터 지우기

Find mod,median,total,average in Matrix

조회 수: 46 (최근 30일)
Amir Hamzah UTeM
Amir Hamzah UTeM 2011년 3월 30일
hi, i have this matrix x=[80 90 70; 70 86 80; 90 80 82; 100 100 100] how to find mod,median,total and average for this matrix in row per row? thanks.

채택된 답변

Matt Fig
Matt Fig 2011년 3월 30일
x = [80 90 70; 70 86 80; 90 80 82; 100 100 100];
mode(x,2)
median(x,2)
sum(x,2)
mean(x,2)
Also, see the help for these functions.
help mean
help mode
help median
help sum

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Mathematics and Optimization에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by