help-octave
[Top][All Lists]
Advanced

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

Re: return value in command line


From: Martin Helm
Subject: Re: return value in command line
Date: Tue, 2 Aug 2011 20:10:52 +0200
User-agent: KMail/1.13.7 (Linux/2.6.37.6-0.5-desktop; KDE/4.6.5; x86_64; ; )

On Dienstag, 2. August 2011 19:54:32 Dylan Thein wrote:
> Hi all,
> 
> Silly question, I was wondering if the results from command line inputs are
> stored in any dummy variables.  For example, if I type 4+2, is the "6"
> stored in a way that is accessible to me on the next line (besides copy
> paste).  I couldn't find anything in the documentation or on the web, but
> its very possible I'm simply searching using the wrong words.
> 
> Thanks in advance,
> Dylan
It is in the variable ans, here is an example

octave:25> 4+2
ans =  6
octave:26> ans+8
ans =  14


reply via email to

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