| Author |
Comment/Response |
Tatjana
|
02/27/13 01:56am
I have a function: myfun[tf_] := Module[{type,x},
Which[type == "Lowpass",
x= do something with tf,
type == "Highpass",
x= do something with tf,
type == "Bandpass",
x= do something with tf]
];
where tf is always given as one of the analog filter transfer functions i.e.ButterworthFilterModel[{"Lowpass", {wp, ws}, {ap, as}}, s]. How do I go about extracting the filter type specification(lowpass, higpass, etc) in the myfun[tf] function, so that based on that I can perform some operations on tf?
Thank you
URL: , |
|