mean square error of a multidimensional signal
Show older comments
Hi...... How to Calculate Mean Square Error of a Signal in Multidimensional Matrix(Multidimensional Array).
Answers (1)
mean( ( array1(:)-array2(:) ).^2 )
8 Comments
ABDUL
on 23 Apr 2018
Image Analyst
on 29 Jun 2018
Did you try to apply Matt's code? All you have to do is change variable names:
mse = mean( ( array1(:)-array2(:) ).^2 )
y = SNR * ones(length(mse));
plot(SNR, y, 'b*-');
ABDUL
on 1 Jul 2018
Image Analyst
on 1 Jul 2018
You'll need multiple array1 and array2 for that. But no problem, just put them into the mse formula and it will calculate the mse for whatever arrays you put into it. Note that your code does not yet change the arrays depending on the SNR, so you will need to do that. There are a variety of ways to do that, the easiest being to simply add the SNR to one of the arrays.
SNR=4; % Whatever
b = a + SNR;
ABDUL
on 3 Jul 2018
ABDUL
on 3 Jul 2018
Categories
Find more on Descriptive Statistics 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!