Question: FS 2 4 - EGR 1 0 2 - Section 8 > Week 5 : In - Class Assignment > Problem 4 : Array and
FSEGR Section Week : InClass Assignment
Problem : Array and Plot
solutions submitted max: Unlimited
Write a MATLAB script that performs the following tasks:
Define the following variables:
Create an array of amplitudes A that includes the values meters
Angular trequency radians per second
Create a time vector t ranging from to seconds, which contains points equally spaced
Calculate the displacement for each amplitude in using the formula
Calculate the velocity using the formula
Plot the results in a subplot:
In the first plot, graph displacement versus
In the second plot, graph velocity versus
Include a title, axis labels, and legend for the plots.
Note: and signifies that the distance and velocity are function of time. Assign distance to variable and velocity to variable
Script
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
