28.12.2012 Views

Figure Properties - SERC

Figure Properties - SERC

Figure Properties - SERC

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

2fplot<br />

Purpose Plot a function between specified limits<br />

Syntax fplot(function,limits)<br />

fplot(function,limits,LineSpec)<br />

fplot(function,limits,tol)<br />

fplot(function,limits,tol,LineSpec)<br />

fplot(function,limits,n)<br />

fplot(axes_handle,...)<br />

[X,Y] = fplot(function,limits,...)<br />

[...] = fplot(function,limits,tol,n,LineSpec,P1,P2,...)<br />

Description fplot plots a function between specified limits. The function must be of the<br />

form y = f(x), where x is a vector whose range specifies the limits, and y is a<br />

vector the same size as x and contains the function’s value at the points in x<br />

(see the first example). If the function returns more than one value for a given<br />

x, then y is a matrix whose columns contain each component of f(x) (see the<br />

second example).<br />

fplot(function,limits) plots 'function' between the limits specified by<br />

limits. limits is a vector specifying the x-axis limits ([xmin xmax]), or the x-<br />

and y-axis limits, ([xmin xmax ymin ymax]).<br />

function must be<br />

The name of an M-file function<br />

A string with variable x that may be passed to eval, such as 'sin(x)',<br />

'diric(x,10)', or '[sin(x),cos(x)]'<br />

A function handle for an M-file function or an anonymous function (see<br />

Function Handles and Anonymous Functions for more information)<br />

The function f(x) must return a row vector for each element of vector x. For<br />

example, if f(x) returns [f1(x),f2(x),f3(x)] then for input [x1;x2] the<br />

function should return the matrix<br />

f1(x1) f2(x1) f3(x1)<br />

f1(x2) f2(x2) f3(x2)<br />

fplot(function,limits,LineSpec) plots 'function' using the line<br />

specification LineSpec.<br />

fplot<br />

2-875

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!