Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'assigning arbitrary matrix to a function' topicStudent Support Forum > General > "assigning arbitrary matrix to a function"

< Previous CommentHelp | Reply To Comment | Reply To Topic
Author Comment/Response
Bill Simpson
09/05/12 11:53am

Like this?

In[1]:= A={{1,1},{1,2},{1,3}};
F[m_]:=m[[1,1]]+m[[1,2]];
F[A]

Out[3]= 2

In[4]:= qq={{Pi,4},{5,6},{7,8}};
F[qq]

Out[5]= 4+Pi

Or are you asking something different?

URL: ,

Subject (listing for 'assigning arbitrary matrix to a function')
Author Date Posted
assigning arbitrary matrix to a function kyra 09/05/12 04:04am
Re: assigning arbitrary matrix to a function Bill Simpson 09/05/12 11:53am
< Previous CommentHelp | Reply To Comment | Reply To Topic