% 关闭图片
close(hmain);
% 生成图片
hY=figure;
set(gcf,'menubar','none','numbertitle','off','name',...
'双缝衍射实验仿真','unit','normalized','position',[0.1,0.1,0.8,0.8]);
% 开辟画图空间
hf1=axes('position',[0.05 0.44 0.40 0.50]);
set(gca,'XTickLabel',[],'YTickLabel',[]);
hf2=axes('position',[0.50 0.44 0.30 0.50]);
axis off;
hf3=axes('position',[0.05 0.05 0.40 0.30]);
set(gca,'XTickLabel',[],'YTickLabel',[]);
% 定义字体大小
fs=20;
fs2=24;
% 标注
h_text1=uicontrol('Style','text','unit','normalized','Position',[0.82,0.90,0.15,0.04],...
'fontsize',fs,'string','可见光波长(nm)');
h_text2=uicontrol('Style','text','unit','normalized','Position',[0.82,0.75,0.15,0.04],...
'fontsize',fs,'string','缝宽与波长关系');
h_text3=uicontrol('Style','text','unit','normalized','Position',[0.82,0.60,0.15,0.04],...
'fontsize',fs,'string','缝间距与波长关系');
h_text4=uicontrol('Style','text','unit','normalized','Position',[0.82,0.45,0.15,0.04],...
'fontsize',fs,'string','透镜焦距(cm)');
h_text5=uicontrol('Style','text','unit','normalized','Position',[0.82,0.30,0.15,0.04],...
'fontsize',fs,'string','屏幕宽度(cm)');
% 标注图像名称
h_text5=uicontrol('Style','text','unit','normalized','Position',[0.17,0.94,0.15,0.04],...
'fontsize',fs,'string','衍射条纹图像');
h_text6=uicontrol('Style','text','unit','normalized','Position',[0.57,0.94,0.15,0.04],...
'fontsize',fs,'string','立体光强分布图');
h_text7=uicontrol('Style','text','unit','normalized','Position',[0.17,0.35,0.15,0.04],...
'fontsize',fs,'string','横向光强分布图');
% 输入值
h_edit1=uicontrol('Style','edit','unit','normalized','Position',[0.85 0.86 0.1 0.04],...
'horizontal','left','string','500','fontsize',fs,'BackgroundColor','w');
h_edit2=uicontrol('Style','edit','unit','normalized','Position',[0.85 0.71 0.1 0.04],...
'horizontal','left','string','5','fontsize',fs,'BackgroundColor','w');
h_edit3=uicontrol('Style','edit','unit','normalized','Position',[0.85 0.56 0.1 0.04],...
'horizontal','left','string','25','fontsize',fs,'BackgroundColor','w');
h_edit4=uicontrol('Style','edit','unit','normalized','Position',[0.85 0.41 0.1 0.04],...
'horizontal','left','string','50','fontsize',fs,'BackgroundColor','w');
h_edit5=uicontrol('Style','edit','unit','normalized','Position',[0.85 0.26 0.1 0.04],...
'horizontal','left','string','60','fontsize',fs,'BackgroundColor','w');
% 按钮
h_push1=uicontrol('style','push','unit','normalized','position',[0.65,0.08,0.12,0.10],...
'fontsize',fs2,'string','运行','callback','Double(h_edit1,h_edit2,h_edit3,h_edit4,h_edit5)');
h_push2=uicontrol('style','push','unit','normalized','position',[0.85,0.08,0.12,0.10],...
'fontsize',fs2,'string','返回','callback','main');
没有合适的资源?快使用搜索试试~ 我知道了~
matlab-基于MATLAB的单缝和双缝衍射实验带GUI界面-源码
![preview](https://csdnimg.cn/release/downloadcmsfe/public/img/white-bg.ca8570fa.png)
共5个文件
m:5个
![preview-icon](https://csdnimg.cn/release/downloadcmsfe/public/img/scale.ab9e0183.png)
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
![star](https://csdnimg.cn/release/downloadcmsfe/public/img/star.98a08eaa.png)
温馨提示
matlab_基于MATLAB的单缝和双缝衍射实验带GUI界面_源码
资源推荐
资源详情
资源评论
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![md](https://img-home.csdnimg.cn/images/20210720083646.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
收起资源包目录
![package](https://csdnimg.cn/release/downloadcmsfe/public/img/package.f3fc750b.png)
![folder](https://csdnimg.cn/release/downloadcmsfe/public/img/folder.005fa2e5.png)
![folder](https://csdnimg.cn/release/downloadcmsfe/public/img/folder.005fa2e5.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
共 5 条
- 1
资源评论
![avatar-default](https://csdnimg.cn/release/downloadcmsfe/public/img/lazyLogo2.1882d7f4.png)
- SafeSecureWare2021-11-09用户下载后在一定时间内未进行评价,系统默认好评。
- quartusII18_12023-06-20资源内容详实,描述详尽,解决了我的问题,受益匪浅,学到了。
- 大迪奥哥2023-11-19感谢大佬分享的资源给了我灵感,果断支持!感谢分享~
![avatar](https://profile-avatar.csdnimg.cn/d5fa1452106248a4a63014172db25c5d_leavemyleave.jpg!1)
mYlEaVeiSmVp
- 粉丝: 1961
- 资源: 19万+
上传资源 快速赚钱
我的内容管理 展开
我的资源 快来上传第一个资源
我的收益
登录查看自己的收益我的积分 登录查看自己的积分
我的C币 登录后查看C币余额
我的收藏
我的下载
下载帮助
![voice](https://csdnimg.cn/release/downloadcmsfe/public/img/voice.245cc511.png)
![center-task](https://csdnimg.cn/release/downloadcmsfe/public/img/center-task.c2eda91a.png)
安全验证
文档复制为VIP权益,开通VIP直接复制
![dialog-icon](https://csdnimg.cn/release/downloadcmsfe/public/img/green-success.6a4acb44.png)