[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Function Returning Answer Variable

From: Alexander Hansen
Subject: Re: Function Returning Answer Variable
Date: Mon, 26 Nov 2012 13:59:41 -0700
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:17.0) Gecko/17.0 Thunderbird/17.0

On 11/26/12 1:53 PM, Vesnog wrote:
> In Octave code I have written a function that returns a scalar variable hence
> losing information in the process since my function is defined to have two
> return values. As a consequence  I do not want to see the output as "ans =
> number" since I have already included a printf statement in the body of the
> function I wrote to display the results. What can I do to achieve my
> purpose? I have attached my code.
> Thanks

Put a semicolon at the end of the line where you use your function, and
that will suppress the "ans = " output.

Alexander Hansen, Ph.D.
Fink User Liaison
My package updates:

reply via email to

[Prev in Thread] Current Thread [Next in Thread]