clean matlab
This commit is contained in:
1 parent
1e5a337f94
commit
4d5693aa1d
1 file changed
-35
@@ -30,35 +30,6 @@ For a low pass filter without zeros, the "digital" gain is :
|
||||
$$k_{d} = k_{a}\cdot \prod_{i} \frac{1-e^{P_{ai}\cdot T}}{P_{ai}}$$
|
||||
|
||||
----------
|
||||
MatLab:
|
||||
% tfchk % Check for proper transfer function
|
||||
% zp2tf % Convert zero-pole-gain filter parameters to transfer function form
|
||||
% filter % 1-D digital filter
|
||||
Signal Processing Toolbox :
|
||||
% eqtflength % Equalize lengths of transfer function numerator and denominator
|
||||
% residuez % Z-transform partial-fraction expansion
|
||||
% sos2tf % Convert digital filter second-order section data to transfer function form
|
||||
% sos2zp % Convert digital filter second-order section parameters to zero-pole-gain form
|
||||
% tf2sos % Convert digital filter transfer function data to second-order sections form
|
||||
% tf2zpk % Convert transfer function filter parameters to zero-pole-gain form
|
||||
% zp2sos % Convert zero-pole-gain filter parameters to second-order sections form
|
||||
% freqz % Frequency response of digital filter
|
||||
% freqs % Frequency response of analog filters
|
||||
% impz % Impulse response of digital filter
|
||||
% stepz % Step response of digital filter
|
||||
% zplane % Zero-pole plot for discrete-time systems
|
||||
% bilinear % Bilinear transformation method for analog-to-digital filter conversion
|
||||
% ellipord % Minimum order for elliptic filters
|
||||
% ellip % Elliptic filter design
|
||||
% chirp % Swept-frequency cosine
|
||||
Control Toolbox :
|
||||
% bode % Bode plot of frequency response, or magnitude and phase data
|
||||
% zpk % Zero-pole-gain model
|
||||
% zpkdata % Access zero-pole-gain data
|
||||
% tf % Transfer function model
|
||||
% tfdata % Access transfer function data
|
||||
% lsim % Plot simulated time response of dynamic system to arbitrary inputs; simulated response data
|
||||
|
||||
|
||||
fc = 1000;
|
||||
wc = 2*pi*fc;
|
||||
@@ -81,12 +52,6 @@ sysd = zpk(zd, pd, kd, ts)
|
||||
sysdb = zpk(zdb, pdb, kdb, ts)
|
||||
|
||||
bode(sysa, sysd, sysdb);
|
||||
title('Bode Diagram', 'Color', '#808080');
|
||||
xlabel('Frequency (rad/s)', 'Color', '#808080');
|
||||
ylabel('Magnitude (dB)', 'Color', '#808080');
|
||||
ylabel('Phase (deg)', 'Color', '#808080');
|
||||
legend('analog','digital','bilinear', 'Color', 'white')
|
||||
|
||||
|
||||

|
||||
|
||||
|
||||
Reference in new issue
Block a user