How to take mean of integers value?
조회 수: 1 (최근 30일)
이전 댓글 표시
I want to take mean of 5 column. How can I ? please find the attachment of the data.
댓글 수: 2
SALAH ALRABEEI
2021년 6월 12일
Use mean(A,dir) where A is ur matrix and dir is the direction in which u r averaging. dir takes 1,or2,or3 etc values
채택된 답변
Scott MacKenzie
2021년 6월 12일
편집: Scott MacKenzie
2021년 6월 12일
You need to use braces because your data are in a table:
mean(LSinclination{:,5})
If it's just the integer values you want the mean of (as suggested in your question title), then
intLogical = mod(LSinclination{:,5},1)==0
mean(LSinclination{intLogical,5});
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!