Student Support Forum: 'Applying function on only a part of list' topicStudent Support Forum > General > Archives > "Applying function on only a part of list"

 Next Comment > Help | Reply To Topic
 Author Comment/Response Jan Klouzny 05/28/07 4:22pm Hi. I'm sorry to repeat this question, because I know somebody's asked before me, but I can't find out it in this forum again. I have (very simple talked) a = { {1,2},{1,3},{1,4} } and I want For[i=1, i<= Length[a], a[[i,2]]=a[[i,2]]*100; i++] I want to ask You how to write it simplier, e.g. apply *100 on all second elements of list a. Better to say how can I change all elements in the i-th column of matrix without For[i=1, i<=...]. I want something like a[#,2]*=100, where # are all possible integers in matrix a. Thanks a lot for help URL: ,

 Subject (listing for 'Applying function on only a part of list') Author Date Posted Applying function on only a part of list Jan Klouzny 05/28/07 4:22pm Re: Applying function on only a part of list yehuda ben-s... 05/29/07 10:33pm
 Next Comment > Help | Reply To Topic