Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Can someone please help me write a MatLab program for this question? I have an idea on how to write the code and I have

Can someone please help me write a MatLab program for this question? I have an idea on how to write the code and I have included what I have written so far. Can someone please either add on to my code or create a new code? Thanks!

image text in transcribed

diary Mike_LAB2_problem4.txt

A = [3 1 1 2 1; 1 2 1 3 1; 1 1 0 3 3; 2 0 3 1 2; 1 2 3 0 2;]

B = 16*[128;118;112;112;104]

x = (A\B)

a = [1,1]; b = [2,1]; c = [3,1]; d = [4,1]; e = [5,1];

diary off

Activate a diary of FIRSTNAME LASTNAME LAB2 problem4.txt in the script A food company manufactures five types of 8 oz Trail mix packages using different mixtures of peanuts, almonds, walnuts, raisins, and M&Ms. The mixtures have the following compositions Mix 1 Mix 2 Mix 3 Mix 4 Mix 5 3 1 2 1 Peanuts (oz) Almonds (oz) 1 Walnuts (oz) Raisins (oz) 1 2 0 2 M&Ms (oz) How many packages of each mix can be manufactured if 128 lb of peanuts, 118 lb of almonds, 112 lb of walnuts, 112 lb of raisins, and 104 lb of M&Ms are available? Write a system of linear equations and solve in MATLAB Turn off the diary

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

Step: 3

blur-text-image

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

Database Systems Design Implementation And Management

Authors: Peter Rob, Carlos Coronel

6th International Edition

061921323X, 978-0619213237

More Books

Students also viewed these Databases questions