1. Write a Matlab script that will solve the system of linear equations shown below. This...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
1. Write a Matlab script that will solve the system of linear equations shown below. This can be done by solving for the vector of unknowns (X) in the equation AX-B where A is the coefficient matrix and B is the vector on the right-hand side. In the script, also include code to verify that the result is correct. 3x-2y = -1 MATLAB R2013a HOME PLOTS FILE Find Fles New New OpenCompare Import Save Script Data Workspace APPS Current Folder Name Prob_1_and_2.m Analyze Code Run and Time Clear Commands CODE VARIABLE ▸C: Users ▸ jfaller ▸ Dropbox ▸ EGCP-447 HW ▸ HW1 ▸ Code Command Window Prob_1_and_2m (MATLAB Script) 0.2000 0.8000 52- 18 >> | -x-6y=-5 New Variable Open Variable Clear Workspace A Smink Library SIMULINK → Search Documentation ?Community Preferences Set Path Paralel ENVIRONMENT H Layout Help Workspace Name EBEBEBER Request Support Add-Ons RESOURCES 82 Value [-1:-5) [-1:-5] 10.2000;0.8000] Command History y 14/2) + (3/2) y2 (5/6) (1/6) plot (x, yl); -hold on: -X plot (x, y2, "a"); xlabel('x'); 'ylabel('y'); O matlab_exercise 7/8/2014 10:33 Al- Ready Figure 1: Results (X) and the solution to the equation to AX = B using X (stored in a variable called B2). B2 is used to verify the results. 1. Write a Matlab script that will solve the system of linear equations shown below. This can be done by solving for the vector of unknowns (X) in the equation AX-B where A is the coefficient matrix and B is the vector on the right-hand side. In the script, also include code to verify that the result is correct. 3x-2y = -1 MATLAB R2013a HOME PLOTS FILE Find Fles New New OpenCompare Import Save Script Data Workspace APPS Current Folder Name Prob_1_and_2.m Analyze Code Run and Time Clear Commands CODE VARIABLE ▸C: Users ▸ jfaller ▸ Dropbox ▸ EGCP-447 HW ▸ HW1 ▸ Code Command Window Prob_1_and_2m (MATLAB Script) 0.2000 0.8000 52- 18 >> | -x-6y=-5 New Variable Open Variable Clear Workspace A Smink Library SIMULINK → Search Documentation ?Community Preferences Set Path Paralel ENVIRONMENT H Layout Help Workspace Name EBEBEBER Request Support Add-Ons RESOURCES 82 Value [-1:-5) [-1:-5] 10.2000;0.8000] Command History y 14/2) + (3/2) y2 (5/6) (1/6) plot (x, yl); -hold on: -X plot (x, y2, "a"); xlabel('x'); 'ylabel('y'); O matlab_exercise 7/8/2014 10:33 Al- Ready Figure 1: Results (X) and the solution to the equation to AX = B using X (stored in a variable called B2). B2 is used to verify the results.
Expert Answer:
Related Book For
Posted Date:
Students also viewed these programming questions
-
Solve the system of linear equations S1.2x + 2.4y = .6 14.8y 1.6x = 2.4.
-
Solve the system of linear equations algebraically. x1 - x2 + 2x3 + 2x4 + 6x5 3x, - 21, + 4x3 + 4x4 + 12t5 X4 - 3x5 = -3 10 6. 14 X - X3 - 2x, 2x, + 4x, + 5x, + 15x5 2x1 2x, + 4x3 + 4x4 + 13x5 13
-
Solve the system of linear equations and check any solutions algebraically. 1. 2. 3. 4. -2 + %3D 10 + %3D 0 S2r y = 0 Ix- y = 7 2
-
A chemical processing plant has a network of pipes that are used to transfer liquid chemical products from one part of the plant to another. The following pipe network has pipe flow capacities in...
-
What is market risk? Illustrate this risk with a foreign exchange example.
-
In doing physical therapy for an injured knee joint, a person raises a 5.0-kg weighted boot as shown in Fig. 8.39. Compute the torque due to the boot for each position shown. 90 40 cm 60 30
-
Find the Fourier transform, \(\hat{f}(k)\), of \(f(x)=e^{-2 x^{2}+x}\).
-
Presented below are selected accounts of Yasunari Kawabata Company at December 31, 2008. The following additional information is available. 1. Inventories are valued at lower of cost or market using...
-
1."If the efficient markets story (risk story) for the value premium is correct, everyone would want to invest more money in value stocks than growth stocks." Is this statement correct? Explain. 2....
-
CSC20 Project 4 For this project our aim is to create a phone book with contact details. Individual contact information is added to the contact class. Then these contacts are added to the Phone books...
-
Wendell Wilson is a paralegal with a small firm, Xavier & Young, that handles family law matters and criminal defense work. This firm just took on a new case involving the divorce of a wealthy...
-
Management accounting is considered a profession. What distinguishes a profession from a vocation?
-
Define permanent account. Provide an example.
-
Why is the term "management accountant" a more appropriate title for an accountant in industry than the term "cost accountant"?
-
On March 1, Kate Company purchased merchandise with an invoice price of \(\$ 2,700\) and \(2 / 10, n / 30\) terms. On March 3, Kate pays \(\$ 98\) transportation cost on the purchased goods. On March...
-
What knowledge should a management accountant have to effectively serve as an advisor to management?
-
On her way home from work, Fatima was carjacked by two men who took her purse and keys at gunpoint. They forced her to drive them to the outskirts of town, threatening to kill her if she didn't...
-
Design a circuit which negative the content of any register and store it in the same register.
-
1. A ________ ________ in x is an equation that can be written in the general form ax2 + bx + c = 0, where a, b, and c are real numbers with a 0. 2. A quadratic equation in x is also called a...
-
Verify that f and g are inverse functions (a) Algebraically (b) Graphically. 1. f(x) = x 5, g(x) = x + 5 2. f(x) = 7x + 1, g(x) = x - 1/7
-
In Exercises 1-4, find the exact values of the six trigonometric functions of the angle θ for each of the two triangles. Explain why the function values are the same. 1. 2. 15 4 7.5...
-
Question: Paul and Shelly Higgins had two wood stoves in their home. Each rested on, but was not attached to, a built-in brick platform. The downstairs wood stove was connected to the chimney flue...
-
Question: Julie does good deeds for countless people, and many are deeply grateful. On Monday, Wilson tells Julie, "You are a wonderful person, and I have a present for you. I am giving you this...
-
1. Tariq Ahmad owned Shankman Laboratories. He decided to dispose of some of the lab's hazardous chemicals by shipping them to his home in Pakistan. He sent the chemicals to Castelazo & Associates...
Study smarter with the SolutionInn App