?? c12_limiter.m
字號:
% File: c12_limiter.m
% Software given here is to accompany the textbook: W.H. Tranter,
% K.S. Shanmugan, T.S. Rappaport, and K.S. Kosbar, Principles of
% Communication Systems Simulation with Wireless Applications,
% Prentice Hall PTR, 2004.
%
x = -10:0.1:10; % input voltage vector
M = 1; % output limiting value
m = 1; % inut limiting value
s = [0.5 1.0 10.0]; % vector of shape factors
for k = 1:201
xx = x(k);
num = M*sign(xx);
for kk = 1:3
xxx = (m/abs(xx))^s(kk);
den = (1+xxx)^(1/s(kk));
y(k,kk) = num/den;
end
end
plot(x,y(:,1),'k-',x,y(:,2),'k:',x,y(:,3),'k--');
grid
xlabel('Input Voltage')
ylabel('Output Voltage')
legend('s=0.5','s=1.0','s=10.0',2)
% End of script file.
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -