I am trying to plot a 3D coordinate system (X,Y,Z) and then I would like to shade an area within this 3D coordinate system with some color for example shade the following region defined by:
Z > Y > X
Can anyone please help?
I have done the following but cant seem to know how to proceed,
a=0:0.1:10;
b=0:0.1:10;
c=0:0.1:10;
[x,y,z]=meshgrid(a,b,c);
Depending on what you call shading, this can be a starting point:
Create a 3D grid of points and a logical 3D array satisfying your condition:
Then use the built-in function
isosurface
:You can then apply the example in displaying isosurfaces available in the manual:
Result:
Ok, so you need to be able to plot volumetric data then. The best thing you can do is download vol3d in order to achieve that. Its a quite nice voxel visualizer.
then:
However, as you are triying to plot volumetric boolean data I suggest you use this couple of nice things in order to get a "nicer" visualization, no more.