MATLAB: Is there a function that can plot data points (Z) as a 3D bar based on their individual coordinates (X, Y)

3d plots

Is there a function that can plot data points (Z) as a 3D bar based on their individual coordinates (X, Y)? Instead of scatter3(…), I wish the data can be plotted as colored bar, the height of which is the value.
Related Question