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: Ben Abbott
Subject: Re: return value in command line
Date: Tue, 02 Aug 2011 14:11:01 -0400

On Aug 2, 2011, at 1:54 PM, 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

Yes it is. The result is stored in the variable named "ans"

        >> 4+2
        ans =  6
        >> ans
        ans =  6

Ben






reply via email to

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