could anyone help me how to compute the mean square error between two cell.
Show older comments
I am having two cell A and B in the attached data.mat.
I want to compute the mean square error between A and B in data.mat.
Could anyone please help me on this.
Accepted Answer
More Answers (1)
jaah navi
on 18 Jul 2021
5 Comments
Walter Roberson
on 18 Jul 2021
mean(cell2mat(D))
Walter Roberson
on 18 Jul 2021
However, this has no relationship to mean squared error.
jaah navi
on 18 Jul 2021
Walter Roberson
on 18 Jul 2021
cellfun(@(a,b) mean(sum(a(:)-b(:)).^2), A, B)
jaah navi
on 19 Jul 2021
Categories
Find more on Matrix Indexing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!