📄 plct.m
字号:
function plct(x,y,xg,yg,p,aw,lw,lt,axs);
%plct.m-plots continuous-time signal. vectors of grid
% loctions are xg and yg. axes limits are xg(1),
% xg(max) and yg(1), yg(max). p(1),p(2)=plot lower left
% corner. p(3),p(4)=plot size.
% aw=axes line width, lw=plot line width, lt=line type
% axs=axes scale 0=liner 1=semilog 2=loglog
%Gordon E. Carlson University or Missour-Rolla
set(gcf,'defaulttextfontname','times');
set(gcf,'defaultaxesfontname','times');
set(gcf,'defaultaxesgridlinestyle',':');
set(gcf,'defaultaxeslinewidt',aw,'defaultlinelinewidt',lw);
subplot('position',[p(1),p(2),p(3),p(4)]);
plot(x,y,lt);
sx=size(xg,2); sy=size(yg,2);
if (axs>=1); set(gca,'xscale','log'); end;
if (axs>=2); set(gca,'yscale','log'); end;
set(gca,'xlim',[xg(1),xg(sx)],'ylim',[yg(1),yg(sy)]);
set(gca,'xtick',[xg],'ytick',[yg]);
set(gca,'fontsize',12);
grid on;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -