Matlab coder and tested mex file
5 views (last 30 days)
Show older comments
Maria on 20 Oct 2020
Commented: Maria on 23 Nov 2020
I am trying using Matlab coder to generate a mex file. I get an error during "run mex file with test function".
The strange thing is that the error refers to a function and to a specific line to that function where, however, I have nothing. I tried to delete all files, the prj, running it again, moving lines in the function, but it just get stuck. I checked whether I have duplicates of the function, but nothing. Moreover, this line is in an else branch that is not even executed in the testing function. Specifically, I get the error
Error using integral_Ihp1_I11_subs_TOL_vectorized (line 184)
Sizes mismatch:  ~= .
I have no idea where the 270 comes from either. And, at line 184 of that function, I have nothing. Do you think that it can be a bug?! What else am I missing that I should check?
Code Generation HDL Coder HDL Code Generation from Simulink Model and Architecture Design Model Compatibility Checks
Find more on Model Compatibility Checks in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!