[Octave] I have a doubt

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[Octave] I have a doubt

Alan Kelton Santos Batista

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


King regards!



_______________________________________________
Help-octave mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/help-octave
Reply | Threaded
Open this post in threaded view
|

Re: [Octave] I have a doubt

NJank
On Nov 12, 2017 2:20 PM, "Alan Kelton Santos Batista" <[hidden email]> 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


_______________________________________________
Help-octave mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/help-octave