Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.math.mathematica

Topic: Automatically retrieving some elements from a list
Replies: 0  

Advanced Search

Back to Topic List Back to Topic List  
emammendes@gmail.com

Posts: 143
Registered: 8/22/05
Automatically retrieving some elements from a list
Posted: Dec 6, 2012 4:56 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

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/(s-1)}},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





Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.