Matlab uicontrol举

来源:互联网 发布:巨人网络 董事局 编辑:程序博客网 时间:2024/06/10 04:05

转载:http://blog.csdn.net/hustspy1990/article/details/4671849

这个例子显示一个理想采样信号及其幅度谱和相位谱,并可以修改参数。 此外还包括几个其他的信号。

主文件

[

btnCall.m

 

white-space: pre-wrap; background-color: #ffffff;">listboxCall.m

 

附录:axes举例
%创建axes坐标图h = axes();%定义图形位置和大小,[left bottom width height]%set(h,'Position',[0.1 0.1 0.8 0.8]);%画图x=0:0.01:12;y=sin(x);plot(h,sin(x));%Sets the location of the tick marks along the axisset(h,'XTickLabel',[0;2;4;6;8;10;12;14]);%显示方格set(h,'XGrid','on','YGrid','on');%设置颜色、字体等属性set(h,'XColor',[0 0 0.7],...       'YColor',[0 0 0.7],...       'ZColor',[0 0 0.7],...       'Color',[.9 .9 .9],...       'GridLineStyle','--',...       'ZTickLabel','-1|Z = 0 Plane|+1',...       'FontName','times',...       'FontAngle','italic',...       'FontSize',14);%定义X坐标和Y坐标的标签名set(get(h,'XLabel'),'String','Values of X',...                    'FontName','times',...                    'FontAngle','italic',...                    'FontSize',14);set(get(h,'YLabel'),'String','Values of Y',...                    'FontName','times',...                    'FontAngle','italic',...                    'FontSize',14)%定义图形标题名                set(get(h,'Title'),'String','/fontname{times}/ity=sin(x)',...                    'FontName','times',...                    'Color',[0 0 0.7],...                    'FontSize',14);

原创粉丝点击