This is machine translation

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

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

Help for Python Functions

For a complete description of Python® functionality, consult outside resources, in particular, python.org. There are different versions of the Python documentation, so be sure to refer to the version corresponding to the version on your system. Many examples in the MATLAB® documentation refer to functions in the Python standard library.

To use functions in a third-party or user-defined Python module, refer to your vendor product documentation for information about how to install the module and for details about its functionality.

The py.help command displays the Python help found at www.python.org/doc. Help for packages and classes can be extensive and might not be useful when displayed in the MATLAB command window.

  • Package

    py.help('textwrap')
  • Class

    py.help('textwrap.TextWrapper')
  • Method of a class

    py.help('textwrap.TextWrapper.wrap')
  • Function

    py.help('textwrap.fill')

If MATLAB displays an error message beginning with Python Error:, refer to your Python documentation for more information.

Note

You cannot use the interactive Python help, calling py.help without input arguments, in MATLAB.

Related Topics

External Websites