MATLAB: How to find log with base value

digital image processingimage processingMATLABMATLAB and Simulink Student Suite

hi all..can anyone tell how to write this eauation in matlab.where Lin is a 2×2 matrix.Thanks in advance..
L=log(i)(Lin+1)
i=max(Lin)+1.Here i is a base value of log.

Best Answer

According to the change of base rule for logarithms, you can use the logarithm function of a specific base to find the logarithm of any base where it is defined. For example
L = log(Lin+1)/log(i)