MATLAB生成光通过三稜镜色散动画部分源码functionoptics_prismcloseallfigure('position',[78276792402]);xp=[-0.2,0.2,0];yp=[0.2,0.2,0.5];B=pi/14;ZZ=[xp;yp]'*[cos(B),sin(B);-sin(B),cos(B)];fill(ZZ(:,1),ZZ(:,2),[0.2,0.4,0.6]);axis([-1,1,0,1]);holdon;set(gca,'color','k');t=0;A=pi/8;set(gcf,'doubl