Scilab Home page | Wiki | Bug tracker | Forge | Mailing list archives | ATOMS | File exchange
Please login or create an account
Change language to: Français - Português - 日本語 - Русский

Please note that the recommended version of Scilab is 6.0.1. This page might be outdated.
See the recommended documentation of this function

Scilab help >> Scilab > Scilab keywords > ans

ans

answer

Description

ans means "answer". Variable ans is created automatically when expressions are not assigned. ans contains the last unassigned evaluated expression.

Variable ans is not protected by predef.

See Also

  • predef — variable protection

Comments

Author : Peter Cusack posted the 09/02/2011 02:00
It might be trivial, but an example should be included for completeness.

Reply to this comment
Please login to comment this page

Author : Allan CORNET posted the 09/02/2011 10:25
-->3
ans =

3.

-->ans
ans =

3.

-->str = "Hello"
str =

Hello

-->ans
ans =

3.

-->str
str =

Hello

-->ans
ans =

3.
Reply to this comment
Please login to comment this page


Add a comment:
Please login to comment this page.

Report an issue
<< Scilab keywords Scilab keywords backslash >>

Scilab Enterprises
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Mon Oct 01 17:34:33 CEST 2012