You can also use several blocks to achieve the same result. First you need your two signals, input and reference signals, be inserted into 'divide' block, then result into 'Math Function' block (which you can adjust to 'log10' ) then into multiply block with multiplying factor equal to 10.
Remember that if the reference signal is in a form of matrix then you need to calculate an average for each time step, otherwise you are ready.