Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'Extracting from arrays' topicStudent Support Forum > General > "Extracting from arrays"

Next Comment >Help | Reply To Topic
Author Comment/Response
Gideon
05/26/07 12:14pm

Hi All!
I would be grateful if someone could help me with this.
I have an array:
A={{1,1},{2,1},{3,1},{4},{5}}
I would like to create a rule in order to extract from this list all those terms whose dimension is equal to 1, those terms such that Dimensions[A[[i]]]=={1}. In this example these are clearly the fourth and fifth terms, only I want to apply this rule to any array of any dimension.

Thanks,
Gideon

URL: ,

Subject (listing for 'Extracting from arrays')
Author Date Posted
Extracting from arrays Gideon 05/26/07 12:14pm
Re: Extracting from arrays Josh Burkart 05/26/07 4:32pm
Re: Re: Extracting from arrays Gideon 05/26/07 5:52pm
Next Comment >Help | Reply To Topic