1 2 3 4 5 6 7
clc; Vcc=12; //volt PP=Vcc; //volt RL=8; //ohm PLmax=PP^2/(8*RL); //watt disp('W',PLmax,"PLmax=");//The answers vary due to round off error