(Solved):
please use MATLAB and write the code
Problem 1: Electrical Power Loss in a Wire Learning objectiv ...
please use MATLAB and write the code
Problem 1: Electrical Power Loss in a Wire Learning objective: Create and manipulate 1D Arrays using a function in MATLAB. Engineering focus: Material Properties (electrical) Background: Electrical resistivity is measure of how much a material opposes the flow of an electrical current. A high resistivity (expressed in Ohm-meters) relates to a material that is a good conductor. The power consumed when a current goes through a wire is related to the resistivity, cross-sectional area of the wire, and the length of the wire. That relationship is shown here: [eqn. 1] Where power is in watts, current is in amperes, length is in meters and area is square meters. Prepare a script (A2_P1_gulogin.m) that determines the power consumed wire made of each metal given diameter =0.007 meters, current =118amps, and length =3.5 meters . 1. Create a column array for: a. Material names (hint: string) b. Resistivity 2. Apply the equation 1 to get the power values for all metals. 3. Create a table with metal names and power in watts. 4. Display the results for Copper (hint: index) as shown below with correct decimal place. (Hint: use \%A.Ae to format scientific notation). The power lost by an X.X meter length of X.XX Xe-XX meter diameter wire made of Copper is XXXXX watts.