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: Dylan Thein
Subject: Re: return value in command line
Date: Tue, 2 Aug 2011 13:22:12 -0500


Ah, since it actually says "ans = 6" that makes a lot of sense.  Thank you both.


On Tue, Aug 2, 2011 at 1:11 PM, Ben Abbott <address@hidden> wrote:
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]