voxel

Draw a rectangular box

Syntax

voxel(c1,c2,'r',transp)

Description

voxel(c1,c2,'r',transp) draws a box given by opposite corners c1 and c2, vg. [0 0 0], with a color and transparence level transp between 0 to 1.

Examples

% VOXEL: Dibujamos un cubo de lado unidad, en color rojo, trasparente 0.1
a=1; b=1; c=1;
voxel([0 0 0],[a b c],'r',0.1);
Unrecognized function or variable 'voxel'.
grid on % Se establece una rejilla
view(-60,30) % Se establece el punto de vista
axis equal