Q:

Make a cubic box in 3d scatter plot in Octave

I have made the following figure in Octave using the scatter3 function.
I would like to draw the rest of the sides of the cube in the plot (the lines x=0,y=0, z=20,x=0 etc). How to do this?

A:

plot3([0,0],[0,0],[0,20],'linewidth',2,'k')

Draws a line between (0,0,0) and (0,0,20). Make such lines for all the sides.

