MATLAB: Error using * (Inner matrix dimensions must agree.)

error using * inner matrix dimensions must agree. error in pelatihan (line 35) cirivar = (i-cirimean).^2*h'

CiriMEAN = mean2(mag);
CiriENT = -H*log2(H+eps)';
CiriVAR = (I-CiriMEAN).^2*H';
Error using *
Inner matrix dimensions must agree.
Error in pelatihan (line 35)
CiriVAR = (I-CiriMEAN).^2*H';

Best Answer

.*