38) What is the benefit of the command close all? 39)Can we plot vector X = [3 9 27] over time t = [1 2 3 4]? Why or why not? 40)Write the Matlab commands that plot the vector X = [11 43 127] over time t = [1 2 3]. Make sure that the vector t is on the x axis and the vector X is on the y axis. o Add a title to the figure that says "This is a plot of distance over time" o Add a title to the x axis that says "This is time(s)" o Add a title to the y axis that says "This is distance(m)"
38) What is the benefit of the command close all? 39)Can we plot vector X = [3 9 27] over time t = [1 2 3 4]? Why or why not? 40)Write the Matlab commands that plot the vector X = [11 43 127] over time t = [1 2 3]. Make sure that the vector t is on the x axis and the vector X is on the y axis. o Add a title to the figure that says "This is a plot of distance over time" o Add a title to the x axis that says "This is time(s)" o Add a title to the y axis that says "This is distance(m)"
Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
Related questions
Question
Can i get the answers
![38) What is the benefit of the command close all?
39)Can we plot vector X = [3 9 27] over time t = |
not?
40) Write the Matlab commands that plot the vector X = [11 43 127] over
time t = [1 2 3]. Make sure that the vector t is on the x axis and the
vector X is on the y axis.
o Add a title to the figure that says "This is a plot of distance
over time"
[1 2 3 4]? Why or why
o Add a title to the x axis that says "This is time(s)"
o Add a title to the y axis that says "This is distance(m)"
41)When do we use a legend in Matlab?
42)Given the dependent vectors X, Y, and Z over the independent vector, if
you know that X = [3 9 27], Y = [10 8 6], Z = [4 4 4], and t=[1 2 3],
use legend to plot these multiple dependent vectors on the same plot.
o Use green for X
o Use blue for Y
o Use red for Z
o Add a title to the figure that says "This is a plot of distance
over time"
o Add a title to the x axis that says "This is time(s)"
o Add a title to the y axis that says "This is distance(m)"
o Print the legend box
o Move the legend box to the south east
43) What command can we use to display multiple plots on the same figure?
44)Given that x = 0:0.1:2*pi do the following using the subplot function
o Define a 2 by 3 subplot figure
o In the first box, plot sine x
o In the second box, plot cosine x
o In the third box, plot negative exponential function of x
o In the fourth box, plot x^3
o In the fifth box, plot 2*x
o In the sixth box, plot x*x
45)Create a vector named time of numbers over the range from 0 to 5 with
increment 0.5 every time (Hint, use the colon operator), and then do
the following:
o Create another vector named height and set it up equal to 2.13 *
time .^2 - 0.13 * time .^4 + 0.000034 * time .^ 4.752
o Write a Matlab commands that plot the vector height over time.
(Hint, make sure that the vector time is on the x axis and the
vector height is on the y axis).
o Rewrite the previous command such that the printed line is](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F523f7629-5884-4a32-a7fc-06024a0bc302%2Fb037b27e-3da8-4ba5-a216-57547d62df38%2Fdc2yzna_processed.jpeg&w=3840&q=75)
Transcribed Image Text:38) What is the benefit of the command close all?
39)Can we plot vector X = [3 9 27] over time t = |
not?
40) Write the Matlab commands that plot the vector X = [11 43 127] over
time t = [1 2 3]. Make sure that the vector t is on the x axis and the
vector X is on the y axis.
o Add a title to the figure that says "This is a plot of distance
over time"
[1 2 3 4]? Why or why
o Add a title to the x axis that says "This is time(s)"
o Add a title to the y axis that says "This is distance(m)"
41)When do we use a legend in Matlab?
42)Given the dependent vectors X, Y, and Z over the independent vector, if
you know that X = [3 9 27], Y = [10 8 6], Z = [4 4 4], and t=[1 2 3],
use legend to plot these multiple dependent vectors on the same plot.
o Use green for X
o Use blue for Y
o Use red for Z
o Add a title to the figure that says "This is a plot of distance
over time"
o Add a title to the x axis that says "This is time(s)"
o Add a title to the y axis that says "This is distance(m)"
o Print the legend box
o Move the legend box to the south east
43) What command can we use to display multiple plots on the same figure?
44)Given that x = 0:0.1:2*pi do the following using the subplot function
o Define a 2 by 3 subplot figure
o In the first box, plot sine x
o In the second box, plot cosine x
o In the third box, plot negative exponential function of x
o In the fourth box, plot x^3
o In the fifth box, plot 2*x
o In the sixth box, plot x*x
45)Create a vector named time of numbers over the range from 0 to 5 with
increment 0.5 every time (Hint, use the colon operator), and then do
the following:
o Create another vector named height and set it up equal to 2.13 *
time .^2 - 0.13 * time .^4 + 0.000034 * time .^ 4.752
o Write a Matlab commands that plot the vector height over time.
(Hint, make sure that the vector time is on the x axis and the
vector height is on the y axis).
o Rewrite the previous command such that the printed line is
Expert Solution
![](/static/compass_v2/shared-icons/check-mark.png)
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 5 steps with 3 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
Recommended textbooks for you
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
![C How to Program (8th Edition)](https://www.bartleby.com/isbn_cover_images/9780133976892/9780133976892_smallCoverImage.gif)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
![Database Systems: Design, Implementation, & Manag…](https://www.bartleby.com/isbn_cover_images/9781337627900/9781337627900_smallCoverImage.gif)
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
![Programmable Logic Controllers](https://www.bartleby.com/isbn_cover_images/9780073373843/9780073373843_smallCoverImage.gif)
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education