MATLAB: A Practical Introduction to Programming and Problem Solving
MATLAB: A Practical Introduction to Programming and Problem Solving
5th Edition
ISBN: 9780128154793
Author: Stormy Attaway Ph.D. Boston University
Publisher: Elsevier Science
bartleby

Concept explainers

bartleby

Videos

Question
Book Icon
Chapter 7, Problem 6E
To determine

To write:

A script that will create x and y vectors. Then, it will ask the user for a color (‘red’, ‘blue’, or ‘green’) and for a plot style (circle or star). It will then create a character vector pstr that contains the color and plot style, so that the call to the plot function would be: plot(x, y, pstr). For example, if the user enters ‘blue’ and ‘ ’, the variable pstr would contain ‘b ’.

Blurred answer
Students have asked these similar questions
what are the coordinates?
plot the points on a coordinate system.
Plot the given point(-1, 4) in a rectangular coordinate system.
Knowledge Booster
Background pattern image
Statistics
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, statistics and related others by exploring similar questions and additional content below.
Recommended textbooks for you
Text book image
Elementary Algebra
Algebra
ISBN:9780998625713
Author:Lynn Marecek, MaryAnne Anthony-Smith
Publisher:OpenStax - Rice University
Text book image
Algebra: Structure And Method, Book 1
Algebra
ISBN:9780395977224
Author:Richard G. Brown, Mary P. Dolciani, Robert H. Sorgenfrey, William L. Cole
Publisher:McDougal Littell
Text book image
Intermediate Algebra
Algebra
ISBN:9780998625720
Author:Lynn Marecek
Publisher:OpenStax College
Text book image
Algebra & Trigonometry with Analytic Geometry
Algebra
ISBN:9781133382119
Author:Swokowski
Publisher:Cengage
Text book image
Holt Mcdougal Larson Pre-algebra: Student Edition...
Algebra
ISBN:9780547587776
Author:HOLT MCDOUGAL
Publisher:HOLT MCDOUGAL
Text book image
Glencoe Algebra 1, Student Edition, 9780079039897...
Algebra
ISBN:9780079039897
Author:Carter
Publisher:McGraw Hill
How to find the magnitude and direction of a given vector; Author: Brian McLogan;https://www.youtube.com/watch?v=4qE-ZrR_NxI;License: Standard YouTube License, CC-BY
Linear Algebra for Computer Scientists. 2. Magnitude of a Vector; Author: Computer Science;https://www.youtube.com/watch?v=ElnuSJyUdR4;License: Standard YouTube License, CC-BY