functionrgbcube(vx,vy,vz)vertices_matrix=[000;001;010;011;100;101;110;111];faces_matrix=[1562;1375;1243;2486;3784;5687];colors=vertices_matrix;patch('Vertices',vertices_matrix,'Faces',faces_matrix,'FaceVertexCData',colors,'FaceColor','interp