Matlab question
Moderator: Thanas
- The Jester
- Padawan Learner
- Posts: 475
- Joined: 2005-05-30 08:34am
- Location: Japan
Matlab question
If I have two vectors which hold the coefficients for the transfer function of an analog filter (one vector for the numerator and one for the denominator) and a second pair of vectors which describe a the tranfer function of a digital filter, how would I go about plotting both systems' frequency responses on a single graph?
- Xenophobe3691
- Sith Marauder
- Posts: 4334
- Joined: 2002-07-24 08:55am
- Location: University of Central Florida, Orlando, FL
- Contact:
Depends. How do you want it arranged?
Generally, you can use the subplot command as so:
Example:
Would create:
Whereas:
Would create:
Generally, you can use the subplot command as so:
Code: Select all
subplot(# of plots, Arrangement of plots, Plot#);plot(t,x);then the rest.
Code: Select all
subplot(2,1,1);
subplot(2,1,2);
Code: Select all
Plot 1 Plot 2
Code: Select all
subplot(2,2,1);
subplot(2,2,2);
Code: Select all
Plot 1
Plot 2
- The Jester
- Padawan Learner
- Posts: 475
- Joined: 2005-05-30 08:34am
- Location: Japan
-
- Jedi Knight
- Posts: 752
- Joined: 2006-10-06 01:21am
- Location: socks with sandals