MathGroup Archive 2007

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

Search the Archive

Re: return two different values


>
> 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