Question: using MATLAB ONLY Solving Linear Equations Students who are also enrolled in ENG125 should do (a) below. Other students may choose to do either (a)

using MATLAB ONLY

using MATLAB ONLY Solving Linear Equations Students who are also enrolled in

Solving Linear Equations Students who are also enrolled in ENG125 should do (a) below. Other students may choose to do either (a) or (b). (a) Use Matlab to solve Problem P2.49 in Hambley (page 113). The node-voltage analysis gives you the following equations: 0.3333 v_1 - 0.06667 v_2 - 0.06667 v_3 = 0.0 -0.06667 v_1 + 0.1333 v_2 - 0.06667 v_3 = 4.0 -0.06667 v_1 - 0.06667 v_2 + 0.1733 v_3 = 0.0 Write a Matlab m-file called prob249.m that will solve these equations. Ensure it has a header and comments specifying inputs, outputs and so on. Display the values of v_1, v_2 and v_3. (b) Use Matlab to solve the following puzzle: Alex, Briony and Cuthbert went to the shops. Alex bought a loaf of bread, five cans of soft drink and two bars of chocolate. He paid a total of $18.25. Briony bought two loaves of bread, one can of soft drink and three bars of chocolate, and paid $17.30. Cuthbert paid $23.50 for three loaves of bread, seven cans of soft drink and one bar of chocolate. What are the prices of a loaf of bread, a can of soft drink and a bar of chocolate? Formulate a set of equations that will solve the puzzle and write a Matlab m-file called prices.m that will solve the equations. Ensure that it has a header and comments specifying inputs, outputs and so on. Display the prices of the three items

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!