MathGroup Archive 2007

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

Search the Archive

return two different values

  • To: mathgroup at smc.vnet.net
  • Subject: [mg83829] return two different values
  • From: vicky Al Aisa <vickyisai at gmail.com>
  • Date: Sun, 2 Dec 2007 04:01:29 -0500 (EST)

Hello all

I am writing a module, from which i want to return 2 different values,
one table and one just a normal int

i used this syntax in  module

Return[EMean,MeanImg];

and while receiving it in main program i use

{MeanX,RedMeanVec}=CalcMean[RedImg];


is this correct, because i am getting some error..which mean that the
arguments are not matching.
so i tried to define those arguments , like i defined RedmeanVec as a
table, but still it doesn work
Error is below


Break::nofunc
Continue::nofunc
Return::nofunc
function::nofunc: Function f not found enclosing expr.

I use Mathematica 5.2

Thnaks



  • Prev by Date: Re: Re: optimization routine using conjugate gradient (or other) method?
  • Next by Date: combine red green and blue channels
  • Previous by thread: Re: Re: optimization routine using conjugate gradient (or other) method?
  • Next by thread: Re: return two different values