• Remix
  • Share
  • New Entry

on 14 Oct 2021
  • 30
  • 175
  • 3
  • 0
  • 275
% rng(0)
% figure(Ren='p')
axes(Color='k',Pr='p')
hold
Current plot held
h=rand(9,2)*2+.4; % building heights
b=bar3(h,.5);
set(b,FaceC=[.3,.3,.3]);
axis equal
camva(30)
campos([1.5 10 .2])
for i=1:9 %rows of buildings 1:size(h,1)
for j=1:2 %L/R buildings
c=.1:.2:h(i,j)-.2;
d=[c;c];
z=d(:)'+[0;0;.1;.1];
y=i-[15;5;5;15]*.01+[0,.2];
y=repmat(y,1,numel(c));
patch(.75+j/2*(z*0+1),y,z,[.8,.8,.8])
end
end
camlight
Image
Remix Tree
Load full remix tree