Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'Several Do loops' topicStudent Support Forum > General > "Several Do loops"

< Previous CommentHelp | Reply To Comment | Reply To Topic
Author Comment/Response
Michael
09/10/12 9:03pm

In the code you posted, each function operated on each element of each dataset. I gather it did not do what you wanted to accomplish.

If you wish to transform the dataset, the you have to set a dataset to the transformed dataset. Using Map (/@) is one way:

dataset1 = func1 /@ dataset1

You can also use Table[]

dataset1 = Table[func1[dataset1[i]], {i,100}]

If that doesn't help, trying rephrasing your question. It's not clear from what you posted exactly what is unsatisfactory about your code.

URL: ,

Subject (listing for 'Several Do loops')
Author Date Posted
Several Do loops Amin 09/06/12 5:13pm
Re: Several Do loops Michael 09/10/12 9:03pm
< Previous CommentHelp | Reply To Comment | Reply To Topic