Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
NCTM or The Math Forum.



Automatically retrieving some elements from a list
Posted:
Dec 6, 2012 4:56 AM


Hello
I wonder whether someone could help to understand what is behind Mathematica syntax. Here is an example:
Control`ZeroPoleGainModel[TransferFunctionModel[s+1,s]]
Control`ZeroPoleGainModel[{{{{1}}},{},{{1}}},s]
I need to extract some values of it so that the output is
{{1},{},{1}}
Control`ZeroPoleGainModel[TransferFunctionModel[{{2/(1+s^2),s/(s1)}},s]] Control`ZeroPoleGainModel[{{{{},{0}}},{{{I,I},{1}}},{{2,1}}},s]
The same thing but the output should be
{{{},{0}},{{l,I},{1}},{2,1}}
Can a function be written to accomplish the above outputs automatically?
BTW, is there a command to see all the functions under Control`?
Many thanks
Ed



