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
Graph the two vectors x= (5, 1,3) and y=(-1,3,1
How do you match each vector with the diagram?
Match the vector diagrams
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
Linear Algebra: A Modern Introduction
Algebra
ISBN:9781285463247
Author:David Poole
Publisher:Cengage Learning
Text book image
Algebra & Trigonometry with Analytic Geometry
Algebra
ISBN:9781133382119
Author:Swokowski
Publisher:Cengage
Text book image
Elementary Linear Algebra (MindTap Course List)
Algebra
ISBN:9781305658004
Author:Ron Larson
Publisher:Cengage Learning
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