pyargs
Create keyword arguments forPythonfunction
Description
kwa = pyargs(
creates one or morekeywordarguments to pass to a Python®function. A Python keyword argument is a value preceded by an identifier. PlaceargKey,argValue
)pyargs
as the final input argument to a Python function. For example:
py.print('a','b',pyargs('sep',','))
Examples
Input Arguments
Limitations
Do not combine
pyargs
andname=value
syntax when passing keyword arguments to Python functions.MATLAB does not support
名称,价值
syntax for passing keyword arguments to Python functions. Usename=value
syntax instead.
Alternative Functionality
You can pass Python keyword arguments using MATLABname=value
syntax. For more information, seeCall Python complex Function Using Keyword Arguments。