How to evaluate power dissipated in the components

how to evaluate power dissipated in the components of an RLC series circuit by using matlab software?

find the cost of your paper