Finding a bivariate quadratic function (25 points) be a vector of size 2x1. Write a MATLAB...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Finding a bivariate quadratic function (25 points) be a vector of size 2x1. Write a MATLAB code Yourlastname Yourfirstname HW5p2.m Let = X2 that finds a bivariate quadratic function f(₁,₂)=xPx+qx+r₁ where P is a 2x 2 symmetric matrix, q is a 2x 1 vector, and r is a scalar, such that the function f satisfies the following conditions f(0,1)=6 f(1,0) 6. f(1,1)=3, f(-1,-1)=7. f(1,2)=2, f(2,1)= 6. In other words, your code should output the matrix P, the vector q, and the scalar r. Finding a bivariate quadratic function (25 points) be a vector of size 2x1. Write a MATLAB code Yourlastname Yourfirstname HW5p2.m Let = X2 that finds a bivariate quadratic function f(₁,₂)=xPx+qx+r₁ where P is a 2x 2 symmetric matrix, q is a 2x 1 vector, and r is a scalar, such that the function f satisfies the following conditions f(0,1)=6 f(1,0) 6. f(1,1)=3, f(-1,-1)=7. f(1,2)=2, f(2,1)= 6. In other words, your code should output the matrix P, the vector q, and the scalar r.
Expert Answer:
Answer rating: 100% (QA)
MATLAB codes function Fm function Az Fx1x2fx1x2 function that returns matrices A and z for solving t... View the full answer
Related Book For
Posted Date:
Students also viewed these programming questions
-
QUIZ... Let D be a poset and let f : D D be a monotone function. (i) Give the definition of the least pre-fixed point, fix (f), of f. Show that fix (f) is a fixed point of f. [5 marks] (ii) Show that...
-
Let A, B be sets. Define: (a) the Cartesian product (A B) (b) the set of relations R between A and B (c) the identity relation A on the set A [3 marks] Suppose S, T are relations between A and B, and...
-
Governmental Funds Statement of Revenues Expenditures and Changes in Fund Balance. You have recently started working as the controller for a small county. The county is preparing its financial...
-
A financial manager has determined that the appropriate discount rate for a foreign project is 12 percent. However, that discount rate applies in the United States using dollars. What discount rate...
-
Describe current demographic trends that suggest new goods and services for entrepreneurial businesses.
-
Based on the design, briefly discuss the data collection procedures to be used. Be sure to include the area rea of focus and targeted sample as part of these procedures. Develop a hypothetical...
-
Enterprises, Inc.s principal product is a hammer that carries a lifetime guarantee. Cost and production data for the hammer follow. Direct materials: Anodized steel: 1 kilograms per hammer at $2 per...
-
A contractor has to move 15 300 Bank m 3 of wet sandy material in rear dump trucks, which will be loaded by an excavator. Average face depth will be 2.4 m with 60-90 degree average swing angle. Ten...
-
The following language was in a handwritten agreement signed by Harold and Saul and their respective wives: Saul & Zelda get the option to rent the lower level of the Hope Chest store when their...
-
Biko, Inc. has beginning and ending finished goods inventories of$120,000 and $146,000, respectively. Sales revenueis $590,000 and gross profit is $44,000. a) Calculate cost of goods manufactur ed....
-
Discuss practical approaches for effective team management and leadership What is an organisational vision and goal? What are organisation's visions and goals? How do visions and goals apply to an...
-
You have been hired by up and coming company Gekko & Co. to create a pay stub calculator for their employees. Their employees are paid only once per month. The pay stub will show take-home pay for...
-
A ball rolls off the edge of A 1.0 m high table with a horizontal speed of 2.0 m/s. How far from the base of the table will the ball land?
-
Predict the output of the following program? Assuming test.txt file exists in C drive( C://test.txt) import java.io.*; class Test } public static void main(String args[]) throws IOException { }...
-
2. Given an analog signal has a range of -4V to 4V, an Analog to Digital Convertor (ADC) will sample the signal every 10ms and map this signal to a digital range from 0 to 8. a. Draw an analog signal...
-
the ++-- signs in add block means * 2 inputs positive and 1 negative 2 positive inputs ,2 negative outputs 2 positive and 2 negative inputs
-
If a force of F = 50 Ib is applied to the pads at A and C, determine the smallest dimension d required for equilibrium if the spring has an unstretched length of 1 ft. B 1 ft 1 ft F k = 15016/fr 1ft...
-
Make a plot of a circle with its center at (4.2, 2.7) and radius of 7.5.
-
Write a program in a script file that determines the real roots of a quadratic equation ax2 + bx + c = 0. Name the file quadroots. When the file runs, it asks the user to enter the values of the...
-
Use a MATLAB built-in function to numerically solve: dy/dx = 2x/3y2 for 1 < / x < 5 with y(1) = 2
-
Biologists have studied the running ability of the northern quoll, a marsupial indigenous to Australia. In one set of experiments, they studied the maximum speed that quolls could run around a curved...
-
In the swing carousel amusement park ride, riders sit in chairs that are attached by a chain to a large rotating drum. As the carousel turns, the riders move in a large circle with the chains tilted...
-
The chain on a bicycle turns the rear wheel via a gear cluster, as shown in Figure Q7.6. The gears vary in size; the smallest gear has a radius of 2.3 cm, the largest a radius of 6.0 cm. If we assume...
Study smarter with the SolutionInn App