- Use cell2mat and convert the cell arrays into a matrix and use mean.
- Run a loop or use Cellfun and calculate the mean of each cell array and then find the mean of means.
How to find the mean from multiple plots stored in one matrix?
조회 수: 2 (최근 30일)
이전 댓글 표시
Hello everyone! My question may be incredibly simple, but I am very new to programming and matlab, so I'd appreciate any help!
I have this cell array that looks like this:
plotting each row with col1 as the x and col2 as the y, this is the plot i get
I need to combine all of these lines to get one line that represents the mean, but Im not sure how to go about approaching the problem.
Any help would be appreciated!
댓글 수: 0
채택된 답변
KSSV
2021년 8월 11일
Two options:
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Shifting and Sorting Matrices에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!