MATLAB Function 和 MATLAB 代码注意事项
R2026bMATLAB 函数、MATLAB® 代码
对 MATLAB 函数和 MATLAB 代码应用高完整性规范。
建模规范
| himl_0001:标准化 MATLAB 函数头的使用 | Use a standardized header to document the purpose and use of MATLAB functions |
| himl_0003:用户定义的 MATLAB 函数的复/实性 | Limit the size and complexity of MATLAB function code |
| himl_0002:MATLAB 函数边界上的强数据定型 | Explicitly define the complexity and type of input signals, output signals, and parameters at MATLAB function interfaces |
| himl_0004:MATLAB 代码分析器针对代码生成的建议 | Use MATLAB Code Analyzer with %#codegen directive and follow code
generation recommendations |
| himl_0006:MATLAB 代码 if/elseif/else 构型 | Terminate if/elseif/else
constructs with an else statement containing meaningful
comment |
| himl_0007:MATLAB 代码 switch/case/otherwise 构型 | Include at least two case statements and an otherwise statement with a meaningful comment in switch constructs |
| himl_0008:MATLAB 代码关系运算符数据类型 | Use the same data type for left and right operands of relational operators |
| himl_0010:具有逻辑运算符和函数的 MATLAB 代码 | Use logical data types for logical operators and logical functions |
| himl_0011:条件表达式的数据类型和大小 | Use logical scalars for condition expressions |
| himl_0012:用于代码生成的 MATLAB 函数的使用 | Restrict MATLAB code to functions supported by code generation |
| himl_0013:内置 MATLAB 函数复/实性的限制 | Limit built-in MATLAB function usage that may produce overly complex generated code |
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
选择网站
选择网站以获取翻译的可用内容,以及查看当地活动和优惠。根据您的位置,我们建议您选择:。
您也可以从以下列表中选择网站:
如何获得最佳网站性能
选择中国网站(中文或英文)以获得最佳网站性能。其他 MathWorks 国家/地区网站并未针对您所在位置的访问进行优化。
美洲
- América Latina (Español)
- Canada (English)
- United States (English)
欧洲
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)