完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
Screen=get(0,'screensize');
W=Screen(3);H=Screen(4); figure('color',[1,1,1],'position',[0.2*H,0.2*H,0.5*W,0.3*W],... 'Name','图形演示系统','NumberTitle','off','menubar','none'); hplot=uimenu(gcf,'Label','&Plot'); uimenu(hplot,'label','Sine Wave','callback',... ['t=-pi:pi/20:pi;',... 'plot(t,sin(t));',... 'set(hgon,"Enable","on");',... 'set(hgoff,"Enable","on");',... 'set(hbon,"Enable","on");',... 'set(hboff,"Enable","on");']); uimenu(hplot,'label','Cosine Wave','callback',... ['t=-pi:pi/20:pi;',... 'plot(t,cos(t));',... 'set(hgon,"enable","on");',... 'set(hgoff,"enable","on");',... 'set(hbon,"enable","on");',... 'set(hboff,"enable","on");']); hoption=uimenu(gcf,'Label','&Option'); hgon=uimenu(hoption,'Label','&Grid on','callback','grid on','enable','off'); hgoff=uimenu(hoption,'Label','&Grid off','callback','grid off','enable','off'); hbon=uimenu(hoption,'Label','&Box on','separator','on','callback','box on','enable','off'); hboff=uimenu(hoption,'Label','&Box off','callback','box off','enable','off'); hwincor=uimenu(hoption,'Label','&Window Color','separator','on'); uimenu(hwincor,'Label','&Red','accelerator','r','callback','set(gcf,"color","r");'); uimenu(hwincor,'Label','&Bed','accelerator','b','callback','set(gcf,"color","b");'); uimenu(hwincor,'label','&Yellow','accelerator','y','callback','set(gcf,"color","y");'); uimenu(hwincor,'Label','&White','accelerator','w','callback','set(gcf,"color","w");'); uimenu(gcf,'Label','&Quit','callback','close(gcf)'); 这段代码运行后达不到预期的效果,在matlab 2012b上运行的 |
|
相关推荐
1个回答
|
|
先来赞一个呵呵呵呵
|
|
|
|
你正在撰写答案
如果你是对答案或其他答案精选点评或询问,请使用“评论”功能。
使用simulink进行三相短路故障分析时,各参数应该如何设置
1238 浏览 1 评论
想请教一下图中是simulink的什么模块,需要这种三段斜率函数模块但没找到在哪
1378 浏览 1 评论
2295 浏览 1 评论
200圆!求助大佬给一份VSG并网和离网模式的simulink仿真
2558 浏览 0 评论
MATLAB(3)--矩阵的引用(sub2ind、ind2sub、reshape函数使用)
3389 浏览 0 评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-18 14:45 , Processed in 0.517417 second(s), Total 75, Slave 58 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号