<< scidoe_pdist Support scidoe_plotlhs >>

Scidoe >> Scidoe > Support > scidoe_plotcube

scidoe_plotcube

Plots a d dimensions cube.

Calling Sequence

scidoe_plotcube(d)
scidoe_plotcube(d,xrange)

Parameters

d :

a 1-by-1 matrix of doubles, the number of dimensions of the cube. The available values are d=2 or d=3.

xrange :

a 1-by-2 or 2-by-1 matrix of doubles, the x range (default xrange=[-1,1]). xrange(2)>=xrange(1)

Description

scidoe_plotcube(d) plots a d dimensions cube in [-1,1]^d (default).

scidoe_plotcube(d,xrange) plots a d dimensions cube in [xrange(1),xrange(2)]^d.

Examples

// Plot a 2D cube in [-1,1]^2
scf();
scidoe_plotcube(2)

// Plot a 3D cube in [-1,1]^3
scf();
scidoe_plotcube(3)

// Plot a 2D cube in [0,1]^2
scf();
scidoe_plotcube(2,[0,1])

// Plot a 3D cube in [0,1]^3
scf();
scidoe_plotcube(3,[0,1])

Authors


Report an issue
<< scidoe_pdist Support scidoe_plotlhs >>