a question on matlab code

Status
Not open for further replies.

bunti

Member level 1
Joined
Jun 3, 2011
Messages
35
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
1,488
i just want some help in defining a function with more than one variable.I tried the code below but it is giving an error...plz let me know what is the mistake.
function(r,s)=fn(x,y)
r=2*x;
s=3*y;
 

what is the error you are getting?
 

Function definitions are not permitted in this context.
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…