mean square error of a multidimensional signal
Ältere Kommentare anzeigen
Hi...... How to Calculate Mean Square Error of a Signal in Multidimensional Matrix(Multidimensional Array).
Antworten (1)
mean( ( array1(:)-array2(:) ).^2 )
8 Kommentare
ABDUL
am 23 Apr. 2018
Image Analyst
am 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
am 1 Jul. 2018
Image Analyst
am 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
am 3 Jul. 2018
ABDUL
am 3 Jul. 2018
Kategorien
Mehr zu Audio and Video Data finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!