Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'Basic Question About MapAt' topicStudent Support Forum > General > "Basic Question About MapAt"

Next Comment >Help | Reply To Topic
Author Comment/Response
GNe
09/04/09 8:40pm

How can I use MapAt to apply a function f to a matrix such that f is applied to every second element of evey "sub-list"? For example, given the matrix {{1,2,3},{4,5,6},{7,8,9}}, how can I use MapAt to give {{1,f[2],3},{4,f[5],6},{7,f[8],9}}?

URL: ,

Subject (listing for 'Basic Question About MapAt')
Author Date Posted
Basic Question About MapAt GNe 09/04/09 8:40pm
Re: Basic Question About MapAt Lothar 09/05/09 2:14pm
Re: Basic Question About MapAt yehuda ben-s... 09/06/09 05:49am
Next Comment >Help | Reply To Topic