Matlab please
Activity 1 - Creating Structures
Write a script that creates a structure named car. Car should have the following fields:
- Mass: a double that describes the mass of the car
- Passengers: a double with the integer number of passengers that your car can carry
- IsElectric: a Boolean. When true, this makes the car an electric car. When false, this makes the car a conventionally fueled car
- FuelOrCharge: a double that represents the amount of fuel or the charge of the battery
- WorkPerUnit: a double that describes the rate at which the car's engine converts battery charge or fuel to energy