Back to Symbolic Mathematics

syms

Create multiple symbolic variables

Syntax

syms x y z
syms('x', 'y', 'z')

Description

Creates multiple symbolic variables and assigns them to the workspace. Supports both command syntax syms x y z and function syntax syms('x', 'y', 'z'). Each variable name becomes a symbolic variable in the current workspace.

Parameters

NameDescription
varsVariable names (space-separated for command syntax, or multiple string arguments)

Returns

Creates variables in workspace (no return value)

Examples

Try It
>> syms x y z
% Creates x, y, z as symbolic variables
Try It
>> syms('a', 'b')
% Creates a, b as symbolic variables

See Also