Hi all,
I'm writing to inquire about the doubt that I have written for the title of the question:
%----------------------------
values = [1.0 0.6 0.1; 0.0 1.0 0.3; 0.9 0.4 1.0];h = bar3(values);shading interpfor i = 1:length(h) % Get the ZData matrix of the current group
zdata = get(h(i),'Zdata'); set(h(i),'Cdata',zdata)endset(h,'EdgeColor','k')view(-61, 68);colormap coolcolorbar%----------------------------
I want to obtain different sizes for each bar that the sizes are function of variable "values". My aim is also to vary the size of each bar according to the Z value, which is between 0 and 1. When I say "size" I mean the X and Y dimensions of the square, the area of the bar in a top view
Thank you very much, José Manuel
Best Answer