: G = gsp_cube(); G = gsp_cube( param );
param | Structure of optional parameters |
G | Resulting graph |
'gsp_cube( param )' creates a graph from points sampled on a hyper-cube. The dimension of the cube can be passed as a parameter. It can be sampled in a uniform voxel grid or randomly.
Example:
G = gsp_cube(); gsp_plot_graph(G); axis square