// FUNDAMENTALS OF ELECTICAL MACHINES // M.A.SALAM // NAROSA PUBLISHING HOUSE // SECOND EDITION // Chapter 1 : REVIEW OF ELECRTIC CIRCUITS // Example : 1.2 clc;clear; // clears the console and command history // Given data V = -24 // voltage in V I = 3 // current in A // caclulations P = V*I // power for the element A in network in W // display the result disp("Example 1.2 solution"); printf(" \n Power for the element A in network \n P = %.0f W ", P);