Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

please use MATLAB and write the code Learning objective: Create and manipulate 1D Arrays using a function in MATLAB. Engineering focus: Carbon emissions (environmental and/or

image text in transcribed

please use MATLAB and write the code

Learning objective: Create and manipulate 1D Arrays using a function in MATLAB. Engineering focus: Carbon emissions (environmental and/or mechanical). A typical passenger vehicle emits about 4.7 metric tons of carbon dioxide per year. Burning just one gallon of gasoline produces around 19.4 pounds of CO2. Typical fuel-efficiency numbers can be found on the U.S. Department of Energy website (www.fueleconomy.gov) which reflect the combined city and highway estimates. From that site, select five (5) vehicles to create three row arrays (carNames, mpg, carYear), including one car you currently drive or wish to drive. In a live script file (A2_P3_Gulogin.mlx), calculate the amount of CO2 emitted during a year for all six vehicles, assuming they all travel 11, 400 miles per year. The output should be a table with the car names (string), year, mpg and Co2 output (it can look like Figure 1 a or b). Make sure to create a table heading per APA format (hint: use fprintf()). Feel free to include pictures and to use APA sources in the live script. Note: Instead of a header using comments, use text in the live editor to relay the same required information. ENSC 192 | A2: ID Arrays Spring 2023 Figure 1 Different table formatting in MATLAB

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Machine Learning And Knowledge Discovery In Databases European Conference Ecml Pkdd 2017 Skopje Macedonia September 18 22 2017 Proceedings Part 3 Lnai 10536

Authors: Yasemin Altun ,Kamalika Das ,Taneli Mielikainen ,Donato Malerba ,Jerzy Stefanowski ,Jesse Read ,Marinka Zitnik ,Michelangelo Ceci ,Saso Dzeroski

1st Edition

3319712721, 978-3319712727

More Books

Students also viewed these Databases questions

Question

Define Decision making

Answered: 1 week ago

Question

What are the major social responsibilities of business managers ?

Answered: 1 week ago

Question

What are the skills of management ?

Answered: 1 week ago