function [PoutWatts,RPM,PinWatts,PoutHP,EtaMotor,ifig]=MotorOutputs(Vin,Iin,Kv,Kt,R,Io,ifig)
%disp(' >>>>>>>MotorOutputs<<<<<<')
PinWatts=Vin*Iin;
RPM=Kv*(Vin-Iin*R);
PoutWatts=(Iin-Io)*(Vin-Iin*R);
PoutHP=PoutWatts/745.7; % Convert output power from watts to hp
EtaMotor=PoutWatts/PinWatts;

