Compute the value of each piece of clothing

Assignment Help MATLAB Programming
Reference no: EM13703758

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?

Reference no: EM13703758

Questions Cloud

Create a third string consisting of the first half of string : Show the length of both strings - Create a third string consisting of the first half of string (1) and the second half of string.
Direct recursion : Procedure A calls Procedure B then, based on the result of Procedure B, may call Procedure A.  Procedure B checks to see if the specific case it is being passed has already been solved; if so, it returns with the answer.  This is most closely an e..
Implementation of the vector data type : Described in general terms the implementation of the vector data type. Complete the implementation of the vector by providing definitions for the subsequent operations
Relation between the objects : What will be said about the relation between the objects object1 and object2 - Make this program using java programming.
Compute the value of each piece of clothing : You decide to write a script in MATLAB that will compute the value of each piece of clothing.
Explain in words a divide-and- conquer algorithm : explain in words a divide-and- conquer algorithm that runs in O(log n) time, and that determines if there is an i for which a[i] = i. Argue that your algorithm is correct and provide supporting pseudo-cod
Create a class called numberset : You need to create a class called NumberSet.  It needs an empty default constructor and an overloaded constructor that takes an integer argument and creates a vector with that many random numbers in it.  So... if I created
Linear search algorithm with scans : Consider the linear search algorithm with scans through an n-element array a to determine if element xis in a. We say that the algorithm require i steps if x is located at index i; i.e. a[i] = x, for i = 0, 1, . . . , n ?
Write a function that accepts an array of integers : Write a function that accepts an array of integers and the size of the array and prints out a table listing how many values in the array fall in each of the following ranges:

Reviews

Write a Review

MATLAB Programming Questions & Answers

  Write a matlab program segment

Plot the given function in MATLAB for x ranging from -1 to 1. Put a proper title of the plot, also label the axes appropriately.

  Symmetry in the rod

matlab programming

  Obtain the cross products using matlab cross function

Use MATLAB cross function to obtain the above cross products. Note that the accelerations are known functions of the derivatives of the three coordinates.

  Use matlab roots function to obtain the six roots

In the plot, you will see one root is obtained from an initial value that is close to another root. Can you explain by observing the plot why that is happening.

  Blood declines due to metabolic processes

Find an expression for the half-life in terms of k, and obtain a plot of the half-life versus k for the indicated range.

  Design a controller which regulates flow

Design a controller which regulates flow and compensate pressure to my desire value in simscape.

  Compute the eigenvalues and eigenvectors of the matrix

Compute the eigenvalues and eigenvectors of the matrix

  The function should compute and return

Define a function that takes as input parameters a function handle f, start and end values a and b, and a number of steps n. The function should compute and return the x and y values of the maximum of the function over the range a to b.

  Compute the power spectral density vector

Compute the power spectral density vector. Plot the spectrogram using the same parameters as in lecture.

  The train will be unsafe if the normal acceleration is

a train track is designed with a radius of 20 meters. the train will be unsafe if the normal acceleration is greater

  In matlab to illustrate the different format specifiers

1.) Write a program in matlab to illustrate the different format specifiers that can be used for obtaining formatted output.

  Matlab: create a function that will use the secant method

MATLAB: Create a function that will use the Secant method

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd