Answered step by step
Verified Expert Solution
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
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 MATLABStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started