Task 1 The position s of an object moving in a straight path is defined by the function s = Vot + (1/2)at, where va is the initial velocity of the object, a is its acceleration, and tis the time. The initial velocity and acceleration of the object is 1.5 m/s and 2 m/s', respectively. Plot the position asa function of time from 0 s to 10 s, at increments of 0.5 s. Use markers to indicate the value of position at those points of time. Make sure to put proper labels, and title for the plot. Task 2 Continuing Task 1, create two other plots for velocity vs time, and acceleration vs time. Use different line styles, line color, and marker styles for all three plots. Make sure to put proper labels, and title for the plot.

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
INSTRUCTIONS:
1. Use MATLAB editor.
Task 1
The position s of an object moving in a straight path is defined by the function s = Kat + (1/2)at, where va
is the initial velocity of the object, aisits acceleration, and tis the time. The initial velocity and acceleration
of the object is 1.5 m/s and 2 m/s, respectively. Plot the position asa function of time from 0s to 10 s, at
increments of 0.5 s. Use markers to indicate the value of position at those points of time. Make sure to
put proper labels, and title for the plot.
Task 2
Continuing Task 1, create two other plots for velocity vs time, and acceleration vs time. Use different line
styles, line color, and marker styles for all three plots. Make sure to put proper labels, and title for the
plot.
Task 3
The following data where obtained from five samples of an unknown substance. The mass and volume
are measured in grams and milliliter, respectively. Create a CSV file in Excel using these data and use
filename Experiment. Import that data as a table in MATLAB. Display the contents of that table.
Mass
Volume
1.50
1.80
1.26
1.50
1.36
1.65
1.67
2.00
1.48
1.78
Task 4
Continuing Task 3, append another column to the Experiment table containing the density for each
sample in g/mL, Use Density as table variable name for that new column. Create a variable containing
the value of the average density; use avg Density as variable name.
Transcribed Image Text:INSTRUCTIONS: 1. Use MATLAB editor. Task 1 The position s of an object moving in a straight path is defined by the function s = Kat + (1/2)at, where va is the initial velocity of the object, aisits acceleration, and tis the time. The initial velocity and acceleration of the object is 1.5 m/s and 2 m/s, respectively. Plot the position asa function of time from 0s to 10 s, at increments of 0.5 s. Use markers to indicate the value of position at those points of time. Make sure to put proper labels, and title for the plot. Task 2 Continuing Task 1, create two other plots for velocity vs time, and acceleration vs time. Use different line styles, line color, and marker styles for all three plots. Make sure to put proper labels, and title for the plot. Task 3 The following data where obtained from five samples of an unknown substance. The mass and volume are measured in grams and milliliter, respectively. Create a CSV file in Excel using these data and use filename Experiment. Import that data as a table in MATLAB. Display the contents of that table. Mass Volume 1.50 1.80 1.26 1.50 1.36 1.65 1.67 2.00 1.48 1.78 Task 4 Continuing Task 3, append another column to the Experiment table containing the density for each sample in g/mL, Use Density as table variable name for that new column. Create a variable containing the value of the average density; use avg Density as variable name.
Task 5
Create a 1-by-1000 row vector called M containing random integer numbers between 8 and 256. Using
logical array indexing, assign all elements with value greater than 200 to a variable called up200. Display
the dimension of variable up200.
Task 6
Continuing previous task, create another variable called up100 containing all elements in M that are
greater than 100 but less than 200. Display the dimension of vector up100. Append variable up200 to
variable up100.
Task 7
Create the following row vectors S and R.
1
3
4
7
11
Rma 10
Create another vector called sarDiff that contains the square root of the difference of s minus R
corresponding elements. However, if roots result in imaginary numbers, replace those numbers with
1
9
-8
17
NARN which stands for Nota Real Number. Note that NARN is not a constant in MATLAB. The expected
output of this task is:
sarDiff = NARN
1.4142
NARN
3.8729
NARN
Transcribed Image Text:Task 5 Create a 1-by-1000 row vector called M containing random integer numbers between 8 and 256. Using logical array indexing, assign all elements with value greater than 200 to a variable called up200. Display the dimension of variable up200. Task 6 Continuing previous task, create another variable called up100 containing all elements in M that are greater than 100 but less than 200. Display the dimension of vector up100. Append variable up200 to variable up100. Task 7 Create the following row vectors S and R. 1 3 4 7 11 Rma 10 Create another vector called sarDiff that contains the square root of the difference of s minus R corresponding elements. However, if roots result in imaginary numbers, replace those numbers with 1 9 -8 17 NARN which stands for Nota Real Number. Note that NARN is not a constant in MATLAB. The expected output of this task is: sarDiff = NARN 1.4142 NARN 3.8729 NARN
Expert Solution
steps

Step by step

Solved in 8 steps with 7 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY