• New Entry

MATropolis - secret Matlab Central society

Adam Danz on 1 Nov 2021
  • 6
  • 96
  • 1
  • 0
  • 278
v=[0;2;2;0];
m=[0;0;1;1];
p=[1,1,0,0];
axes(Color='k',Pr='p',ColorM=gray,CameraT=[9 2 4])
hold on
surf([0 34],[0 0],[0 0;15 15],2); % wall
[x,z]=ndgrid(2:4:30,2:4:13); % lower left corner of windows
q=x(:)'+v;
patch(q,q./q/70,z(:)'+3*m,1); % Windows; slightly front of building
patch(10+v,0*p+1/14,5*m,6) % Door, slightly front of windows
fill3([16,6,10,12],8*p,0*p,9*m) % Light casted onto ground
axis equal
campos([-9 8 6])
camva(30)
Remix Tree