Mathematica 9 is now available
Student Support Forum
Student Support Forum: 'Extract function specification' topicStudent Support Forum > General > Archives > "Extract function specification"

Next Comment >Help | Reply To Topic
Author Comment/Response
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: ,

Subject (listing for 'Extract function specification')
Author Date Posted
Extract function specification Tatjana 02/27/13 01:56am
Re: Extract function specification yehuda 03/03/13 06:17am
Re: Re: Extract function specification Tatjana 03/04/13 02:01am
Next Comment >Help | Reply To Topic