Question: Nutrition b ) Write MATLAB statements to define the necessary arrays for this system of equations: c ) Try to solve the system of equations
Nutrition b Write MATLAB statements to define the necessary arrays for this system of equations:
c Try to solve the system of equations above in MATLAB. What is the result? Calculate the
residual. Does the solution appear to be valid?
d Use the rank function to demonstrate that the system is overdetermined ie has no
solution
e Use the rref function on the augmented matrix to corroborate that the system is
overdetermined show command and result
f Use array indexing in MATLAB to change the values of certain elements in your arrays, as
follows: Change the target amount of vitamin C for the meal from to units.
Change the measured vitamin A content of food from to units per ounce.
Show the necessary commands:
g Solve the new system of equations in MATLAB. What is the result? Calculate the residual.
Does the solution appear to be valid? Verify using the rref function on the augmented matrix.
A dietitian wishes to plan a meal around three foods. The meal should include units of vitamin A units of vitamin C and units of calcium. Based on laboratory measurements, the number of units of the vitamins and calcium in one ounce of each food is indicated in the table below:
Nutrient content of foods units of nutrient per ounce of food
tableNutrientFood Food Food Vitamin AVitamin CCalcium
a Arrange this information into a system of equations that would be used to find the appropriate quantity in ounces of each food that is needed to meet the nutritional objectives for the meal.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
