Skip to content

ans

help · scripts/help/ans.m

Automatic Variable: ans

Holds the value of the last expression that was evaluated without being assigned to a variable.

Typing 7 * 6 at the prompt sets ans to 42, and the next unassigned expression replaces it.