ans

Purpose

The most recent answer.

Synopsis

ans

Description

ans is the variable created automatically when no output argument is specified.

Examples

The statement

2+2
is the same as

ans = 2+2

(c) Copyright 1994 by The MathWorks, Inc.