Home > FR3DSource > zSquare.m

zSquare

PURPOSE ^

zBox(X,Y,color) plots a rectangular box with lower left corner X and

SYNOPSIS ^

function [void] = zBox(X,Y,color)

DESCRIPTION ^

 zBox(X,Y,color) plots a rectangular box with lower left corner X and
 upper right corner Y, using color

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 % zBox(X,Y,color) plots a rectangular box with lower left corner X and
0002 % upper right corner Y, using color
0003 
0004 function [void] = zBox(X,Y,color)
0005 
0006 set(gcf,'Renderer','OpenGL');
0007 
0008 a = X(1);
0009 b = X(2);
0010 c = X(3);
0011 
0012 x = Y(1);
0013 y = Y(2);
0014 z = Y(3);
0015 
0016 plot3([a,x,x,a,a],[b,b,y,y,b],[c,c,c,c,c],color);

Generated on Fri 03-Apr-2009 09:52:35 by m2html © 2003