MATLAB: How to use this formula in matlab

mathematics formula

H=1/2 log2|S1|-1/2 log2|S2 = -1/2 log2|S2-invS1|
i have the value of S1 and S2

Best Answer

Use log2() and abs() and remember to put in multiplication explicitly