摘要
给出一种基于MATLABS函数和MEX编程的仿真过程动画显示模块实现方法,利用S函数实现动画显示窗口管理和动画帧的显示,通过MEX函数来利用其他编程语言和图形函数库实现动画帧便捷美观的绘制,最终实现仿真过程动画显示。通过此方法得到的S函数模块可集成到Simulink模型中,方便地提供仿真过程的动画演示。
A method for building simulation process animation blocks based on MATLAB S-function and MEX programming is proposed. The management of the animation display window and the displaying of animation frames are implemented in the S-function, and the convenient drawing of elegant animation frames is done by MEX programming using other programming languages and graphical libraries. By combining these two parts together, the animation of the simulation process is finally realized. The S-function blocks thus obtained can be integrated into Simulink models, providing convenient animation demonstration for the simulation process.
出处
《计算机教育》
2010年第19期148-150,共3页
Computer Education