Single precision inputs for compiled simulink model

Hi there, I'm using a Matlab-script that compiles a Simulink-model and then executes it within a loop. (script and model structure are attached). The model itself calculates in a non-dynamic matter, meaning it calculates just 1 step per model execution. Because of restrictions in RAM usage in the original case, I need to store variables in single precision.
However, during execution the following error occurs: status = 1 cmdout = Starting model 'StaticModel' @ Fri Dec 22 12:20:18 2016 Error starting model: Data type of matrix variable from MAT-file Input_matrix.mat is not double!
So I'm asking: What need's to be done that a single precision input matrix is accepted in this case?
Thanks in advance.
BTW: I'm using Matlab R2015a

回答(0 个)

类别

帮助中心File Exchange 中查找有关 Simulink Coder 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by