|
Hello,
I have a plotting question. I know similar questions have been asked before, but somehow I cannot get any of those solutions to work.
I have a 3D array, of dimension m x n x o, with each element in the array containing an integer i (this is a voxel representation of an image). I would like to make a 3D scatter plot where the axes are 1:m, 1:n, and 1:o, and each point is sized according to the value of i. I have tried scatter3, but I keep getting an error "X, Y and Z must be vectors of the same length." I tried making new axes using [X,Y,Z]=meshgrid(1:m, 1:n, 1:o), but I got the same error. Does anyone have any suggestions? Thanks very much!
|