MATLAB Function Reference |

A simple function of three variables

**Syntax**

**Description**

`flow`

, a function of three variables, generates fluid-flow data that is useful for demonstrating `slice`

, `interp3`

, and other functions that visualize scalar volume data.

```
v = flow
```

produces a 50-by-25-by-25 array.

```
v = flow(n)
```

produces a 2`n`

-by-`n`

-by-`n`

array.

```
v = flow(x,y,z)
```

evaluates the speed profile at the points `x`

, `y`

, and `z`

.

```
[x,y,z,v] = flow(...)
```

returns the coordinates as well as the volume data.

**See Also**

Volume Visualization for related functions

See Example -- Slicing Fluid Flow Data for an example that uses `flow`

.

flops | fminbnd |

© 1994-2005 The MathWorks, Inc.