Reference no: EM132171687
Using MATLAB:
Suppose you are creating a script in Matlab for an individual that builds a structure named 'car' and includes the fields: make, model, year, mileage, class (car, van, truck, etc) and color.
Have you script include 3 vehicles of your choosing then have the user input their own vehicles (use a loop and continue asking until the user is done entering vehicles).
When the user adds a specific make, model and year check the current array for duplicates. (The duplicate check needs to look for matches of make, model and year only.)
If there is a duplicate, return a message to the user that says 'match found' then display their data and the data of the duplicate.
However, if there is no match, return the user entered values only. Ask the user if they would like to view all vehicles, and if they choose yes display all vehicles in a table with appropriate headings.