Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create a new script a ) At the top of any new MATLAB script, make a comment ( % ) including: assignment title course number

Create a new script
a) At the top of any new MATLAB script, make a comment (%) including:
assignment title
course number (MAE 3724)
your name (Last, First)
the current date
b) Save your script with the name Matlab1.m. SAVE EARLY! SAVE OFTEN!
Create vectors of data
a)[20pt] Create a vector (t) that contains time from 0 seconds to 3 seconds, with a step-size
of 0.01 seconds.
b)20pt Create a vector (y) that contains the position values for y(t)=5*sin(4*t) in
meters.
c)20pt Create a vector (vel) that contains the velocity values for v(t)=20*cos(4*t) in
ms.
Plot data
a)[20pt] Make separate plots of y vs.t and vel vs.t. Use pauses in between plots.
b)[20pt] Make a single plot of y vs.t and vel vs.t on the same graph. Make y a solid red
line and vel a dashed blue line. Make sure to include:
Appropriate graph title
Axis labels and units (you may simply label the y-axis as Amplitude)
Legend (now that multiple lines are on the graph). Your legend should identify the
plot of y as position (m) and the plot of vel as velocity (m/s).
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Big Data With Hadoop MapReduce A Classroom Approach

Authors: Rathinaraja Jeyaraj ,Ganeshkumar Pugalendhi ,Anand Paul

1st Edition

1774634848, 978-1774634844

More Books

Students also viewed these Databases questions

Question

=+44-6 Discuss predictors of happiness and how we can be happier.

Answered: 1 week ago

Question

Discuss communication challenges in a global environment.

Answered: 1 week ago