Scilab Home page | Wiki | Bug tracker | Forge | Mailing list archives | ATOMS | File exchange
Please login or create an account
Change language to: English - Português - 日本語

Please note that the recommended version of Scilab is 6.1.0. This page might be outdated.
See the recommended documentation of this function

Aide Scilab >> Graphiques > 2d_plot > fplot2d

# 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>)```

### Arguments

xr

vector.

f

external of type `y=f(x)` i.e. a scilab function or a dynamically linked routine referred to as a string.

style,strf,leg,rect,nax

see `plot2d`

<opt_args>

see `plot2d`

### 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 — 2D plot
• feval — évaluation multiple d'une fonction
• paramfplot2d — animation dans le plan d'une courbe définie par une fonction

J.Ph.C.

### Comments

Add a comment:
Please login to comment this page.

 << fec_properties 2d_plot grayplot >>

 Scilab EnterprisesCopyright (c) 2011-2017 (Scilab Enterprises)Copyright (c) 1989-2012 (INRIA)Copyright (c) 1989-2007 (ENPC)with contributors Last updated:Thu May 12 11:44:59 CEST 2011