Man Scilab

fplot2d
Scilab Function

fplot2d - 2D plot of a curve defined by a function

Calling Sequence

fplot2d(xr,f,[style,strf,leg,rect,nax])
fplot2d(xr,f,<opt_args>)

Parameters

Description

fplot2d plots a curve defined by the external function f . The curve is approximated by a piecewise linear interpolation using the points (xr(i),f(xr(i)) . The values of f(x) are obtained by feval(xr,f) .

Enter the command fplot2d() to see a demo.

Examples


deff("[y]=f(x)","y=sin(x)+cos(x)")
x=[0:0.1:10]*%pi/10;
fplot2d(x,f)
clf();
fplot2d(1:10,'parab')
 
  

See Also

plot2d ,   feval ,   paramfplot2d ,  

Author

J.Ph.C.

Back