MathGroup Archive 2007

[Date Index] [Thread Index] [Author Index]

Search the Archive

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



  • Prev by Date: Re: combine red green and blue channels
  • Next by Date: FindInstance what inspite ?
  • Previous by thread: return two different values
  • Next by thread: Re: return two different values