Week 7 Challenge
1)Vehicle model:
The vehicel model is made in the simulink using the resistive force equation.The model is shown below,

The resistive force including airdrag,hill climbing,rolling resistance force are taken into the model using the fcn block where the equations are written and the value are passed through the workspace.
The total resistance is taken and added with the total force and the result is divided by the mass of the vehicle.The force is then integrated to get the velocity.

Thus the velocity is obtained as constant value as the input values are just a ramp value and there is no negativre balue in it.