rplotsig1.m
来自「generate eye diagram from spice sim resu」· M 代码 · 共 49 行
M
49 行
% written by Mike Perrott with modifications by Scott Willinghamfunction [] = plotsig1(x,s,log)global sweep;title_str = s(1);sig = evalsig(x, char(s(1)));for i = 2:length(s) title_str = strcat(title_str,', ',s(i)); sig = [sig, evalsig(x, char(s(i)))];end% timesteps are different across sweeps, so replicate:if strcmp(x(1).name, 'TIME') szdata = size(x(1).data); if sweep > 0 & sweep <= szdata(2) ivar = x(1).data(:,sweep); else ivar = repmat(x(1).data, 1, length(s)); endelse ivar = x(1).data(:,1);endif nargin > 2 switch log case 'logx' h = semilogx(ivar, sig); case 'logy' h = semilogy(ivar, sig); case {'logxy','loglog'} h = loglog(ivar, sig); otherwise fprintf('Warning (plotsig1): unrecognized plot_args\n') h = plot(ivar, sig); endelse h = plot(ivar, sig);end% Thicken the linesfor i=1:length(h) set(h(i), 'LineWidth', 2);endtitle_str = strrep(title_str, '_', '.');% ylabel(title_str);grid on;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?