Engineering Fundamentals: An Introduction to Engineering, 4th ed.c

(Steven Felgate) #1

481


■Figure 15.13 The plot of volume versusxfor Example 15.4.


Let us now discuss the MATLAB commands that commonly are used when plotting data.
The plot(x,y)command plots yvalues versus xvalues. You can use various line types,
plot symbols, or colors with the command plot(x,y,s), where sis a character string that
defines a particular line type, plot symbol, or line color. The scan take on one of the proper-
ties shown in Table 15.12.

TABLE 15.12 MATLAB Line and Symbol Properties


S Color S Data Symbol S Line Type


b Blue. Point - Solid
g Green O Circle : Dotted
r Red x x-mark -. Dash-dot
c Cyan  Plus - - Dashed
m Magenta * Star
y Yellow s Square
k Black d Diamond
v Triangle (down)
^ Triangle (up)
 Triangle (left)
 Triangle (right)

Copyright 2010 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).

圀圀圀⸀夀䄀娀䐀䄀一倀刀䔀匀匀⸀䌀伀䴀圀圀圀⸀夀䄀娀䐀䄀一倀刀䔀匀匀⸀䌀伀䴀

Free download pdf