Re: return two different values
- To: mathgroup at smc.vnet.net
- Subject: [mg83877] Re: [mg83829] return two different values
- From: "W. Craig Carter" <ccarter at mit.edu>
- Date: Mon, 3 Dec 2007 05:48:33 -0500 (EST)
- References: <200712020901.EAA04247@smc.vnet.net>
>
> i used this syntax in module
>
> Return[EMean,MeanImg];
>
> and while receiving it in main program i use
>
> {MeanX,RedMeanVec}=CalcMean[RedImg];
You are close. You just need to return as list:
axample:
f[x_] := Module[{}, Return[{x^2, x^4}]]
{square, fourth} = f[y]
Craig
- References:
- return two different values
- From: vicky Al Aisa <vickyisai@gmail.com>
- return two different values