Code covered by the BSD License  

Highlights from
Simple bar plot with errorbars in 3D

image thumbnail
from Simple bar plot with errorbars in 3D by Sung Soo Kim
Simple bar plot with errorbars in 3D.

barError3d_sample.m
figure;
data = cool(7);
upperErrorSize = 0.1*ones(size(data));
lowerErrorSize = [];
faceColor = {'y','b','r';
                'y','b','r';
                'y','b','r';
                'y','b','r';
                'y','b','r';
                'y','b','r';
                'y','b','r'};
h=barError3d(data,upperErrorSize,lowerErrorSize,faceColor);

figure;
x=[0.5:1:size(data,1)-0.5]';
x=repmat(x,1,size(data,2));
y=1:size(data,2);
y=repmat(y,size(data,1),1);
width = 0.5*ones(size(data));
a={[0,1,1]};
edgeColor=repmat(a,size(data));
errorBarWidth=0.8*ones(size(data));
a={'m'};
errorColor=repmat(a,size(data));

h=barError3d(data,upperErrorSize,lowerErrorSize,faceColor, ...
    x,y,width,edgeColor,errorBarWidth,errorColor);

Contact us at files@mathworks.com