1. Engineering
  2. Computer Science
  3. write the script in matlab script should include at least...

Question: write the script in matlab script should include at least...

Question details

Write the script in MATLAB.

Script should include at least two of the following: an ‘if’ loop, a ‘for’ loop, a ‘while’ loop. Please comment your code appropriately

Write a script for the following scenario: A 2D rigid body undergoes general plane motion. We know the location of two points on the rigid body in its initial position: A = 01+ 0) metres and B = 21+ 0ј metres. Point A on the rigid body follows the path y 0.5x from Ax- 0 to Ax 100 metres. At the halfway point of the trajectory (i.e. when Ax-50 metres) the rigid body begins to rotate about A. However, this is not a continuous rotation. Every 6 meters, the object instantaneously rotates 30 degrees in the counter clockwise direction about A. Create two matrices, one for point A and one for point B, that describe the coordinates of each point as A moves from 0 to 100 metres at 2 metre increments in the x direction. Plot the position vector at each increment throughout the rigid bodys trajectory.

Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution