Question: CS240 Intro Engineering Programming: Spring 2019 Matlab Programming Assignment 5 Due Friday, March 15th by midnight Topics: User-define Functions in MATLAB, for loops and find

 CS240 Intro Engineering Programming: Spring 2019 Matlab Programming Assignment 5 DueFriday, March 15th by midnight Topics: User-define Functions in MATLAB, for loopsand find function 1 Fruit Classification Suppose you work for a company

CS240 Intro Engineering Programming: Spring 2019 Matlab Programming Assignment 5 Due Friday, March 15th by midnight Topics: User-define Functions in MATLAB, for loops and find function 1 Fruit Classification Suppose you work for a company that processes fruits. To improve the efficiency in the shipping process, this compay has acquire a new sensor that reads the sourness of four different types of fruits: oranges, pears, grapes, and apples. The sensor then classifies the fruits according to its voltage level as follows Voltage Leve Fuit Name in the Progranm 0 and 10 11 and 20 21 and 30 31 and 40 Apple ear Grape Orange 7 Output for function Voltage Fruit 18.0 33.0 31.0 34.0 15.0 37.0 10.5 48.0 50.0 38.0 35.0 39.0 42.0 33.0 31.0 1.0 5.0 9.0 13.0 11.0 27.0 35.0 1.0 46.0 22.0 6.0 19.0 36.0 0 0 0 0 0 0 fruit fin-f fin(volt); Output find function Voltage Fruit 18.0 33.0 31.0 34.0 15.0 37.0 10.5 48.0 50.0 38.0 35.0 39.0 42.0 33.0 31.0 0 0 0 0 5.0 9.0 13.0 11.0 27.0 35.0 46.0 22.0 6.0 19.0 36.0 Submission Upload your functions files ( f for.m and f find.m ) to D2L's (Program 05) Dropbox. Due date is on March 15th by midnight 2 Hint Perhaps the char function could be useful when printing the table. Also, keep in mind that we need to use just one & for the comparison when working with vectors and double && with scalars (same rules apply with logical operator or)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!