You decide to write a script in matlab that will compute


Question: You have a friend who has too many clothes to store in her/his tiny wardrobe provided by Georgia Tech. Being a good friend, you offer to help to decide whether each piece of clothing is worth saving. You decide to write a script in MATLAB that will compute the value of each piece of clothing.

A piece of clothing has five attributes that can used to determine its value. The attributes are: condition, color, price, number of matches, and comfort.

Each attribute will be rated on a scale of 1-5.

Write a script called clothes in MATLAB that will ask the user for the ratings for each attribute and store the result in a vector.

The order of attributes in the vector is as given:

[condition color price matches comfort]

The script should compute a value between 0 and 100; 100 represents a good piece of clothing while 0 represents a bad piece of clothing.

The points that should be given for each attribute are exposed below:

Condition: 1=>0; 2=>5; 3=>10; 4=>15; 5=>20

Color: 1 => blue => 12;

2 => red (UGA Colors) => 2;

3 => pink => 15;

4 => yellow (GT Colors) => 20;

5 => white => 12

Price: 1 => 8, 2-3 => 16, 4-5 => 20 Matches: 1-2 => 8, 3-5 => 19 Comfort: 1 => 6, 2-3 => 13, 4-5 =>18

Note: If a number other than 1-5 is assigned for one of the attributes, no points should be provided.

Can someone provide the answer with MATLAB?

Request for Solution File

Ask an Expert for Answer!!
MATLAB Programming: You decide to write a script in matlab that will compute
Reference No:- TGS0957035

Expected delivery within 24 Hours