Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

argnames

Input variables of symbolic function

Syntax

argnames(f)

Description

argnames(f) returns input variables of f.

Input Arguments

f

Symbolic function.

Examples

Create this symbolic function:

syms f(x, y)
f(x, y) = x + y;

Use argnames to find input variables of f:

argnames(f)
ans =
[ x, y]

Create this symbolic function:

syms f(a, b, x, y)
f(x, b, y, a) = a*x + b*y;

Use argnames to find input variables of f. When returning variables, argnames uses the same order as you used when you defined the function:

argnames(f)
ans =
[ x, b, y, a]

See Also

| | |

Introduced in R2012a

Was this topic helpful?