Question: You are asked to make a simulation of a single truck vehicle from vehicle dynamic block set library in MATLAB. The vehicle is driven with

You are asked to make a simulation of a single truck vehicle from vehicle dynamic block set library in MATLAB. The vehicle is driven with longitudinal velocity of 10 m/s. For longitudinal force you can use the block of constant magic formula with braking.The steering angle has the following sequence of driving: 0 degrees for the first 10 seconds, then it turned to the right (6 degrees) for 2 seconds then it returns to 0 for the last 5 seconds.The wind has a speed of 5 m/s in the direction of 30 degrees to the negative x-axis.At the first 10 seconds, the vehicle is assumed to travel up hill with a grade of 4 degrees.You can use the user defined function block with using a suitable code like as you like (if statements, for and while loops, matrix, etc.) describing the steering angle scenario, road slope and wind speed. Or using input/output simulation blocksYou should plot the XY trajectory of the car (you can build a suitable code for this purpose, then use plot commands). The trajectory should have a dashed style with a red color. Explain your results. The car is initially at (0,0).The vehicle has the parameters as follow:

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!