Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'If statement of a list' topicStudent Support Forum > General > Archives > "If statement of a list"

Next Comment >Help | Reply To Topic
Author Comment/Response
Sarah
01/27/11 08:49am

Hi
I want to create an if statment that states; if the elements in, list1>0 , true subtract list2, false keep value from list1 so that i
end up with ans: {0,2,5,4}
list1 = {0, 2, 8, 9}
list2 = {1, 0, 3, 5}
I dont know how to represent the elements in the lists

URL: ,

Subject (listing for 'If statement of a list')
Author Date Posted
If statement of a list Sarah 01/27/11 08:49am
Re: If statement of a list yehuda ben-s... 01/28/11 09:14am
Re: If statement of a list TomD 01/30/11 03:42am
Next Comment >Help | Reply To Topic