- 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:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/708892/image.jpeg)
plotting each row with col1 as the x and col2 as the y, this is the plot i get
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/708897/image.jpeg)
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!