如何在 MATLAB Function 模块中使用 base workspace 中的变量?
조회 수: 38 (최근 30일)
이전 댓글 표시
MathWorks Support Team
2019년 10월 29일
편집: MathWorks Support Team
2024년 5월 8일
如何在 MATLAB Function 模块中使用 base workspace 中的变量?
채택된 답변
MathWorks Support Team
2024년 5월 8일
편집: MathWorks Support Team
2024년 5월 8일
以下是达到相同目的的步骤:
1)找到由此需求的 MATLAB Function模块
2)双击打开模块
3)在编辑器选项卡中,您可以看到选择“编辑数据”(edit data)
4)单击此按钮,将打开一个对话框
5)在这里,选择 Add->Data
6)将名称更改为base workspace 中的变量名称,将范围(Scope)更改为参数(Parameter)
上述工作流程也支持代码生成。
更多信息参考:
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Modulation에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!