Scilab Home page | Wiki | Bug tracker | Forge | Mailing list archives | ATOMS | File exchange
Please login or create an account
Change language to: Français - Português - 日本語 - Русский
Scilab Help >> Graphics > 3d_plot > nf3d

# nf3d

Rectangular facets to plot3d parameters

### Syntax

`[xx,yy,zz]=nf3d(x,y,z)`

x,y,x,xx,yy,zz

6 real matrices

### Description

Utility function. Used for transforming rectangular facets coded in three matrices x,y,z to scilab code for facets accepted by plot3d.

### Examples

```//A sphere...
u = linspace(-%pi/2,%pi/2,40);
v = linspace(0,2*%pi,20);
x= cos(u)'*cos(v);
y= cos(u)'*sin(v);
z= sin(u)'*ones(v);
//plot3d2(x,y,z) is equivalent to...
[xx,yy,zz]=nf3d(x,y,z); plot3d(xx,yy,zz)```

### See also

• plot3d — 3D plot of a surface
• plot3d2 — plot surface defined by rectangular facets

### Comments

Add a comment:
Please login to comment this page.

 Report an issue << mesh 3d_plot param3d >>

 Scilab EnterprisesCopyright (c) 2011-2017 (Scilab Enterprises)Copyright (c) 1989-2012 (INRIA)Copyright (c) 1989-2007 (ENPC)with contributors Last updated:Thu Feb 14 14:57:22 CET 2019