I have an issue where I have my data formatted such that I have n data points in the Z axis, and every Z data point has m corresponding x & y points. I essentially want to have n 2D m-point plots, but merged into one surface.
My data takes the following form:
z = [0 1 2 3]
data(:, :, 1) = [0 1 2; 2 2 2] (the first row corresponds to the x points, second to the y; the page (the 1) corresponds to the respective z point at which I am plotting said x and y points)
So essentially, at z(i)
, I would like to have data(:, :, i)
plotted. Then finally all merged together into one surface. How would I accomplish this?
An example that might help imagine the situation is if data(:, :, i)
for all i
was uniform, like the above sample, then a cube surface (of volume 12) would be drawn.