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 ExchangeSimulink Coder についてさらに検索

質問済み:

2017 年 1 月 2 日

編集済み:

2017 年 1 月 2 日

Community Treasure Hunt

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

Start Hunting!

Translated by