function boxplot3(x0,y0,z0,lx,ly,lz,k)
%x0,y0,z0分别为立方体起始坐标;lx,ly,lz分别为长,宽,高;
%k为颜色参数需要加''例:boxplot3(x0,y0,z0,lx,ly,lz,'r')为红色填充图
x=zeros(6,5);y=zeros(6,5);z=zeros(6,5);
x=[x0 x0+lx x0+lx x0 x0;
x0 x0 x0 x0 x0;
x0 x0+lx x0+lx x0 x0;
x0 x0+lx x0+lx x0 x0;
x0 x0+lx x0+lx x0 x0;
x0+lx x0+lx x0+lx x0+lx x0+lx];
y=[y0 y0 y0 y0 y0;
y0 y0 y0+ly y0+ly y0;
y0 y0 y0+ly y0+ly y0;
y0 y0 y0+ly y0+ly y0;
y0+ly y0+ly y0+ly y0+ly y0+ly;
y0 y0 y0+ly y0+ly y0];
z=[z0 z0 z0+lz z0+lz z0;
z0 z0+lz z0+lz z0 z0;
z0+lz z0+lz z0+lz z0+lz z0+lz;
z0 z0 z0 z0 z0;
z0 z0 z0+lz z0+lz z0
%x0,y0,z0分别为立方体起始坐标;lx,ly,lz分别为长,宽,高;
%k为颜色参数需要加''例:boxplot3(x0,y0,z0,lx,ly,lz,'r')为红色填充图
x=zeros(6,5);y=zeros(6,5);z=zeros(6,5);
x=[x0 x0+lx x0+lx x0 x0;
x0 x0 x0 x0 x0;
x0 x0+lx x0+lx x0 x0;
x0 x0+lx x0+lx x0 x0;
x0 x0+lx x0+lx x0 x0;
x0+lx x0+lx x0+lx x0+lx x0+lx];
y=[y0 y0 y0 y0 y0;
y0 y0 y0+ly y0+ly y0;
y0 y0 y0+ly y0+ly y0;
y0 y0 y0+ly y0+ly y0;
y0+ly y0+ly y0+ly y0+ly y0+ly;
y0 y0 y0+ly y0+ly y0];
z=[z0 z0 z0+lz z0+lz z0;
z0 z0+lz z0+lz z0 z0;
z0+lz z0+lz z0+lz z0+lz z0+lz;
z0 z0 z0 z0 z0;
z0 z0 z0+lz z0+lz z0