解决matlab - Integrate the Simulink Scope in code generation
Simulink Coder for C/C++ code generation from Simulink models, but when I connect a signal to a
Scope block and build it for code generation scope doesn't open automatically. Is there a way to integrate
Scope block in code generation so that it opens automatically running .exe file? Thanks in advance.
this question asked Feb 19 '14 at 10:18 Orlok 114 1 3 18
This cannot be done. Scopes are MATLAB figure windows, use MATLAB code in the background, and hence do not support code generation.
Assuming you are only interested in desktop simulation (i.e. not real-time code generation) then what you can do is write a MATLAB GUI that calls a Simulink Coder (RSIM target) generated exe (to run a simulation and store the results in .mat file), then deploy the MATLAB GUI using the MATLAB Compiler. It's far from ideal, but can be made to work.
this answer answered Feb 19 '14 at 15:28 Phil Goddard 6,423 1 5 21
- 4Matlab textread函数详解
- 5Matlab 线性拟合 & 非线性拟合