Visualization of planar sections in MATLAB

I wrote a simple MATLAB script to create a 50x50 $ D $ matrix, which is a flat section .

Partitions of planes are usually represented graphically as stacks of cubes. How to implement this visualization in MATLAB? I played with the HIST function to no avail. I approached the grid (D), but the results were pretty ugly ...

$$ Hey! I'm not ugly! $$

Your help is greatly appreciated.

+4
source share
1 answer

Adding an answer for completeness:

Use the bar3 function as described in the docs .

+3
source

Source: https://habr.com/ru/post/1398568/


All Articles