Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'Calculate number of occurences in tha table' topicStudent Support Forum > General > Archives > "Calculate number of occurences in tha table"

< Previous Comment | Next Comment >Help | Reply To Comment | Reply To Topic
Author Comment/Response
Bill Simpson
01/13/13 5:25pm

In[1]:= t={{1,2,3},{2,3,4},{4,5,6}};
f[n_]:=Count[Flatten[t],n]

In[3]:= f[1]
Out[3]= 1

In[4]:= f[2]
Out[4]= 2

In[5]:= f[3]
Out[5]= 2

URL: ,

Subject (listing for 'Calculate number of occurences in tha table')
Author Date Posted
Calculate number of occurences in tha table ed 01/13/13 4:00pm
Re: Calculate number of occurences in tha table Bill Simpson 01/13/13 5:25pm
Re: Re: Calculate number of occurences in tha t... yehuda 01/14/13 11:20am
< Previous Comment | Next Comment >Help | Reply To Comment | Reply To Topic