Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'outputs of user defined function' topicStudent Support Forum > General > Archives > "outputs of user defined function"

Next Comment >Help | Reply To Topic
Author Comment/Response
tosbaga
03/18/11 4:23pm

In MATLAB a function is writen as

[output1,output2]=f(input1,input2)
output1=2*input1;
output2=3+input2;
end

in a program you can call function "f" as

...
[x,y]=f(a,b)
...

In MATHEMATICA a user-defined function is
f[input1,input2]
how can I assign the outputs of a user-defined function to a variables as shown in above.

URL: ,

Subject (listing for 'outputs of user defined function')
Author Date Posted
outputs of user defined function tosbaga 03/18/11 4:23pm
Re: outputs of user defined function yehuda ben-s... 03/20/11 01:49am
Re: outputs of user defined function Isaac 03/20/11 09:33am
Re: outputs of user defined function Peter Pein 03/20/11 11:08am
Re: outputs of user defined function tosbaga 05/08/11 11:10am
Re: outputs of user defined function tosbaga 05/08/11 3:06pm
Next Comment >Help | Reply To Topic