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

3 visualizzazioni (ultimi 30 giorni)
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 :)

Risposta accettata

Sruthi Ayloo
Sruthi Ayloo il 24 Lug 2015
Modificato: Sruthi Ayloo il 24 Lug 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.

Più risposte (0)

Community Treasure Hunt

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

Start Hunting!

Translated by