Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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 body's trajectoryStep 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