Student Support Forum
-----
Student Support Forum: 'Problem with a function with two parameters' topicStudent Support Forum > General > Archives > "Problem with a function with two parameters"

< Previous Comment | Next Comment >Help | Reply To Comment | Reply To Topic | Post New Topic
Author Comment/Response
Xavier
05/29/08 1:26pm

Hey,

You can try this:

Map[If[Extract[A, #] == 0, Extract[B, #], Extract[A, #]] &, Table[{i, j}, {i, Length[A]}, {j, Length[B]}], {2}]

Instead of doing a mapping on A or B, you can do a mapping on the set of {i,j}, coordinates. You must use extract in such a case, and not part.

This is a possibility among many others.
Cheers,

Xavier

URL: http://xroudaut.free.fr,

Subject (listing for 'Problem with a function with two parameters')
Author Date Posted
Problem with a function with two parameters Joel Santos 05/28/08 03:05am
Re: Problem with a function with two parameters Xavier 05/29/08 1:26pm
Re: Problem with a function with two parameters Randy Silvers 05/29/08 8:08pm
Re: Problem with a function with two parameters yehuda ben-s... 05/30/08 06:14am
Re: Problem with a function with two parameters Joel Santos 06/03/08 09:52am
< Previous Comment | Next Comment >Help | Reply To Comment | Reply To Topic | Post New Topic





 © 2008 Wolfram Research, Inc.  Terms of Use  Privacy Policy |
Sign up for our newsletter: