Complex Coefficient Filter bode plot
Show older comments
How to obtain the bode plot for a transfer function with complex coefficients in Matlab?, i.e. gain and phase for positive and negative frequencies.
Answers (2)
GonzElo
on 4 Jan 2012
Craig
on 4 Jan 2012
You could try this as a workaround
a = tf(1,[1,i]) % Complex tf
wp = logspace(-2,2,100); % Freq vector
hpos = freqresp(a,wp); % Get Positive freq response
hneg = freqresp(a,-wp); % Get Negative freq response
% Put them into an frd, Note both are done with a positive frequency vector
frdpos = frd(hpos,wp);
frdneg = frd(hneg,wp);
% Plot bode of two responses (note second response is negative frequency
bode(frdpos,frdneg)
Or you can you the data to make your own plot.
-craig
Categories
Find more on Pole and Zero Locations in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!