Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Visual Basic6 Database Programming

Authors: John W. Fronckowiak, David J. Helda

1st Edition

0764532545, 978-0764532542

More Books

Students also viewed these Databases questions