メインコンテンツ

ライブ エディターを使用した実行可能な例の作成

ライブ エディターでは、実行可能なコード例が含まれた、コードのドキュメンテーションを作成できます。ユーザーがコードへのさまざまな入力で実験できるように、例には対話型コントロールを含めます。その後、コードと共にドキュメンテーションを配布して、コードをさらに使いやすくすることができます。

この例では、書式設定されたテキスト、数式、実行可能コードを使用して、サンプル関数 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

参考

トピック