1 / 7

Bruce Mayer, PE Licensed Electrical & Mechanical Engineer BMayer@ChabotCollege

Engineering 43. Chp3 Nodal Analysis & MATLAB. Bruce Mayer, PE Licensed Electrical & Mechanical Engineer BMayer@ChabotCollege.edu. Last of The Hand-Soln. The .m Script File. % ENGR43_Chp3_Nodal_Analysis_MATLAB_Tutorial_0602.m % Bruce Mayer, PE % ENGR43 * 05Feb05 %

Download Presentation

Bruce Mayer, PE Licensed Electrical & Mechanical Engineer BMayer@ChabotCollege

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Engineering 43 Chp3 Nodal Analysis & MATLAB Bruce Mayer, PE Licensed Electrical & Mechanical EngineerBMayer@ChabotCollege.edu

  2. Last of The Hand-Soln

  3. The .m Script File % ENGR43_Chp3_Nodal_Analysis_MATLAB_Tutorial_0602.m % Bruce Mayer, PE % ENGR43 * 05Feb05 % % The Coeffiecent Matrix A (unitless) A = [1 0 0 0; 0 0 -1 1; -4 7 -2 0; 30 -25 -4 -10] % % The Constraint Vector B B = [40; 60; 0; -200] % in Volts % % Solve by MATLAB "Back Division" V = A\B; disp('The Solution Vector, [V1; V2; V3; V4] in Volts = ') disp(V) % % Power to I-Src is V4*10mA disp('Power Supplied by 10 mA current source in mW =') disp(V(4)*10)

  4. The Solution • From ENGR43_Chp3_Nodal_Analysis_MATLAB_Tutorial_0602.m A = 1 0 0 0 0 0 -1 1 -4 7 -2 0 30 -25 -4 -10 B = 40 60 0 -200 The Solution Vector, [V1; V2; V3; V4] in Volts = 40.0000 25.9459 10.8108 70.8108 Power Supplied by 10 mA current source in mW = 708.1081

More Related