• Remix
  • Share
  • New Entry

on 8 Nov 2023
  • 8
  • 35
  • 0
  • 0
  • 141
drawframe(1);
Write your drawframe function below
function drawframe(f)
% based to https://de.mathworks.com/matlabcentral/communitycontests/contests/5/entries/12398
I=bitcmp(analyze75read('brainMRI'));
imshow(flipud(I(:,:,round(f/2)+2)), [100 256]);
xlim([5 128]);
ylim([5 128]);
hold on
m=hot;
% for i=1:100
% r=rand(1,2);
% d=ceil(r(2)*200+50);
% % plot(nsidedpoly(randi(4)+2,c=r*115+2,s=r(2)*5+2), "EdgeA", .2, "FaceA", .2, 'FaceColor', m(d,:))
% xlim([5 128]);
% ylim([5 128]);
% end
axis equal off
hold off
end
Animation
Remix Tree