Main Content

使用实时编辑器创建可运行实体示例

在实时编辑器中,您可以为代码创建包含可运行代码示例的文档。为了让您的用户试验不同代码输入,请在示例中包含交互式控件。然后,您可以将文档与代码一起分发,以帮助提高代码的可用性。

此示例使用格式化文本、方程和可运行代码来记录示例函数 estimatePanelOutput。示例文档包括具有编辑字段和数值滑块的可运行示例,允许函数用户试验不同函数输入。

要查看示例文档中的控件并与之交互,请在 MATLAB® 中打开此示例。

Sample documentation for estimatePanelOutput function with an Overview section and an Examples section containing one example. The example calls estimatePanelOutput with sample input selections from multiple controls and shows resulting output.controls with sample input selections, and a call to the estimatePanelOutput s several controls containing

相关主题