实现多缝衍射的matlab代码
别妄想泡我
799次浏览
2020年07月30日 17:06
最佳经验
本文由作者推荐
核磁共振氢谱图怎么看-谄笑
a=-4*pi:0.01*pi:4*pi;
P=1-sin(n*a).^2./sin(a).^2;
plot(a,P)
lgray=zeros(256,3);
for i=0:255
lgray(i+1,:)=(255-i)/255;
end
imagesc(P)
colormap(lgray)
matlab GUI程序全部代码
function varargout = duofengyanshe(varargin)
% DUOFENGYANSHE M-file for
% DUOFENGYANSHE, by itself, creates a new DUOFENGYANSHE or raises the existing
% singleton*.
%
% H = DUOFENGYANSHE returns the handle to a new DUOFENGYANSHE or the handle to
% the existing singleton*.
%
% DUOFENGYANSHE('CALLBACK