help-octave
[Top][All Lists]
Advanced

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

Re: quiet option, ans =


From: Mike Miller
Subject: Re: quiet option, ans =
Date: Fri, 1 Aug 2003 17:05:19 -0500 (CDT)

On Fri, 1 Aug 2003, Ian Garcia wrote:

> Is there a way to eliminate the "ans=" and
> the following  empty line from the output ?

> octave:1> myfunc(X)
> ans =
>
>    171.949
>     90.221


Do this:

disp(myfunc(X))

That will just display the result.

If you do this (as someone recommended)...

myfunc(X);

...you will get no ans= and no newline, but you also will get no output at
all! (which is good when you don't want output, but I think you do want
something).

Mike



-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.octave.org
How to fund new projects:  http://www.octave.org/funding.html
Subscription information:  http://www.octave.org/archive.html
-------------------------------------------------------------



reply via email to

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