LAB #6 In this lab, we want to check our understanding with MATLAB to solve a system of linear equations. The below prob
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
LAB #6 In this lab, we want to check our understanding with MATLAB to solve a system of linear equations. The below prob
statement: Ahmed went to the supermarket to buy some fruits and vegetables. He bought 3 Apple, 4 Oranges, 15 bananas, 7 lemons and 12 onions, and he paid SR 87. The next day he went back and bought 4 lemons and 5 onions, and he paid SR 23. Then he went again and bought 7 apples, 1 orange and 2 onions, and he paid SR 14. Two days later, he bought 3 bananas, 2 lemon and 1 onion and paid SR 13. Then for the last time he paid SR 9 for 1 apple, 1 orange, 1 banana, 1 lemon and 1 onion. Problem Requirement: Using MATLAB, we want to know the price of each type of fruit and vegetable. Fill out the below table: shem Apple Orange Orion SR Banana Lemon Price SR SR SR SR Hint: Construct a matrix A from the problem above, then input the matrix into MATLAB, then use it salve, and fill out the above table.
LAB #6 In this lab, we want to check our understanding with MATLAB to solve a system of linear equations. The below problem can be solved by hand, but it requires more time to do it. MATLAB will be able to solve it in a short period of time. Problem