优化性能
高性能的 Simulink® 模型可以快速编译和进行仿真。您可以利用 Simulink 提供的方法加快模型仿真速度。
提高仿真性能的第一步,就是使用性能顾问。性能顾问可以找出可能会减慢仿真速度的条件。该工具可以自动对模型进行更改以解决这些条件,您也可以手动查看和应用建议的更改。
精选示例
Introduction to Accelerating Models
Simulink® Accelerator™ speeds up the execution of your model, by creating and compiling C code. This C code takes the place of the interpretive code that Simulink uses when in Normal mode (that is, when Simulink® is not in Accelerator mode). Simulink Accelerator generates the C code from the Simulink model and invokes the MATLAB® mex function to compile and dynamically link the generated code to Simulink. This code generation and compilation process happens the first time you accelerate the model and any time the model changes are significant enough to require re-generation (for example, the addition of a block).
Rapid Accelerator Simulations Using Parsim
The use of Rapid Accelerator in applications that require running parallel simulations for a range of input and parameter values.
Implement an FFT on a Multicore Processor and an FPGA
Take advantage of a multicore processor target with FPGA acceleration by graphically partitioning a model. This example requires Simulink Coder™ to generate multi-threaded code and HDL Coder™ to generate HDL code. You cannot generate HDL code on Macintosh systems.
MATLAB 命令
您点击的链接对应于以下 MATLAB 命令:
请在 MATLAB 命令行窗口中直接输入以执行命令。Web 浏览器不支持 MATLAB 命令。
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- 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)