Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'working with nested lists' topicStudent Support Forum > General > "working with nested lists"

Next Comment >Help | Reply To Topic
Author Comment/Response
Levi
08/14/12 1:20pm

I'm trying to apply a transformation to a every element in a nested list. The issue is that each sub-list has a different length

Example of the list:
myList={{{-33.355 Degree, 278.265}, {-33.486 Degree,
155.871}, {-60.650 Degree, 27.534}},
{{-38.418 Degree, 148.054}, {-165.173 Degree, 70.342}}};

This is what I am trying and does not work:
Do[
Table[{myList[[k, i, 1]], myList[k, i, 2]] (-1)/Sin[myList[[k, i, 1]]]}, {i,
Length[myList[[k]]]}], {k, Length[myList]}]

Any tips?

URL: ,

Subject (listing for 'working with nested lists')
Author Date Posted
working with nested lists Levi 08/14/12 1:20pm
Re: working with nested lists Bill Simpson 08/14/12 4:40pm
Re: working with nested lists Levente 08/14/12 9:50pm
Re: Re: working with nested lists Bill Simpson 08/15/12 11:40am
Re: working with nested lists yehuda 08/15/12 1:19pm
Next Comment >Help | Reply To Topic