Hi!
I am assuming that you want to calculate efficency for as a fucntion of dissipated power losses
You can calculate the efficiency in Simulink using the following command:
>>efficiency = pe_getEfficiency(‘loadIdentifer’, node)
It returns the efficiency of a circuit based on the data extracted from a Simscape™ logging node.
You can refer to the following documentation to know how to calculate efficiency in Simulink: