主要内容

Live Scripts and Functions

可以包括格式的文本,图像和输出以解释代码的程序文件

实时脚本和实时功能是程序文件,可用于与一系列MATLAB进行交互®commands. Live scripts contain output and graphics with the code that produced them, together in a single interactive environment called the Live Editor. Live functions provide additional flexibility, allowing you to pass input values and return output values. You can add formatted text, images, hyperlinks, and equations to live scripts and functions to produce an interactive narrative that can be shared with others.

有关实时脚本和功能的更多信息,包括无兼容性和有关实时代码文件格式的信息,请参见什么是实时脚本或功能?.

To explore existing live scripts from the MATLAB community, see theMATLABLive Script Gallery.

Example live scripts

Functions

export Convert live script or function to standard format

Topics