- https://www.mathworks.com/support/bugreports/details/2983319
- https://www.mathworks.com/support/bugreports/details/3035356
Compile-time size assumption error in Simulink function script
7 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
I'm encountering a compile-time size assumption violation error when attempting to run my MATLAB code with code generation.
I am working with a column vector ffeout_lp which has the dimensions 63680x1, and an integer oversample which is set to 40. I am quite new to scripting in simulink, so what I have tried so far may not have been optimal. The 'coder.varsize' statements above are to initialize space for arrays, as to my knowledge dynamic initializing is not permitted for code generation. How do I go about this compile time error?
Thanks!
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1740311/image.png)
0 Commenti
Risposte (1)
Divyanshu
il 6 Set 2024
Most probably you are facing this issue because of an existing bug in 'R2023b' in MATLAB Coder. You can refer the following bug-reports to get more details on the bug:
This bug is fixed in R2024a, so you can try updating the version of MATLAB.
Also you can refer the following documentation link for more information:
Hope it helps!
0 Commenti
Vedere anche
Categorie
Scopri di più su Simulink Coder in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!