help-octave
[Top][All Lists]
Advanced

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

Re: [Octave] I have a doubt


From: Nicholas Jankowski
Subject: Re: [Octave] I have a doubt
Date: Sun, 12 Nov 2017 14:45:35 -0500

On Nov 12, 2017 2:20 PM, "Alan Kelton Santos Batista" <address@hidden> wrote:

Hi guys, sorry for the disturb, but i have a terrible doubt: What does "ans" means?


In Octave and Matlab, "ans" is the name of the variable that holds the most recent result (or answer) if you haven't stored it in another variable.  "ans" is short for "answer".  

For example:

>> 1+1
ans =
    2

>> ans + 1
ans =
     3

>> x = 1+1
x =
    2


reply via email to

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