• Remix
  • Share
  • New Entry

on 26 Oct 2022
  • 35
  • 101
  • 0
  • 1
  • 272
umbrella % Credit: https://www.mathworks.com/matlabcentral/fileexchange/116880
% 2 rows of buildings
bar3(rand(9,2)*2+.4,.5)
% scene details
set(gcf,Color='k')
camproj p
axis equal off
camva(11)
campos([1.5 11.4 .2])
camtarget([1.6, 5, .3])
colormap gray
%% Brownian ground surface
% Credit: https://www.mathworks.com/matlabcentral/fileexchange/71774
imagesc([0,3],[0,10],midpoint2D(9,.5))
%% Scale, translate, and rotate the umbrella
% umbrella.m is a script so we have access to all variables in that file.
% hg1 is the Transform object that contains the umbrella parts.
hg1.Matrix=makehgtform('translate',[1.45,9,.012],'scale',.03,'zrotate',-.6,'yrotate',.8);
camlight
Remix Tree