How to make "facets" larger on a figure with faceted shading?

3 views (last 30 days)
Hello all,
I'm currently working on this guy:
which uses a faceted shading. My question is whether there is a way to make the squares bigger, say 10 cm each?
Sorry if that's a dumb question, I'm relatively new to MatLab.
Thanks :)

Accepted Answer

Sruthi Ayloo
Sruthi Ayloo on 24 Jul 2015
Edited: Sruthi Ayloo on 24 Jul 2015
Hi,
From your question, I understand that you want to make the square meshes on the cube larger in size (10cm).
There are 2 ways to go about this:
1.If you make the plotting data less dense i.e plot the cube for every 10cm, you can see the square mesh for every 10 cm. But this would affect the shading of the cube.
Taking the following example from Interpolating Gridded Data :
If the plotting data is made less dense, the following would be observed:
More Dense data plot
Less Dense Data Plot
2. If you do not want the shading to be affected, you can use the following command to set the shading color property to “interp”
>> shading interp
This property varies the color in each line segment and face by interpolating the colormap index or true color value across the line or face. The output of this command would be:
Then, you can explicitly draw the square meshes at every location you want.
Hope this helps.

More Answers (0)

Categories

Find more on Colormaps in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!