Question: MATLAB PROBLEM - [PLEASE DO NOT WRITE ON PAPER] Advanced Arrays: Cell and structure arrays Must use Iteration to solve this problem It turns out
MATLAB PROBLEM - [PLEASE DO NOT WRITE ON PAPER]
Advanced Arrays: Cell and structure arrays
Must use Iteration to solve this problem
![MATLAB PROBLEM - [PLEASE DO NOT WRITE ON PAPER] Advanced Arrays: Cell](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f3110c4b8fe_64366f3110b9e243.jpg)
It turns out that since you become an expert on rating clothing, Acme Clothing Company has hired you to rate its clothes. Clothes are now represented as structures instead of vectors with the fields (all of which are numbers between 0 and 5) 4. Condition, Color, Price, Matches, and Comfo Acme has a much simpler way of rating its clothes than you used before Rating-5* Conditions+3*Color+2Price+Matches+9*Comfort Create the structure below and call it makeClothes. You will use this to automatically rate them with a script. (HINT: Use struct() function and all values in a cell array to ensure structure array matches the picture below.) Fields ltem ConditionColor Price MatchesComfort Shirt 1 Shirt 2 Shirt 3 Pant 1 Pant 2 Pant 3 Shoe 1 Glove 1 Hat 1 4 4 4 You are to write a script that will add a Rating field and a Quality field to each of the structures in the new acmeClothes array. The Rating field in each structure should contain the rating of that particular article of clothing. The Quality field is a string that is premium, if the Rating is over 80, 'good' over 60, 'poor over 20, and 'liquidated' for everything else Your output structure array should look like this: |Fields -Item Rating-Quality 52 "Poor 41 "Poor Shirt 1 Shirt 2
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
