Compile-time size assumption error in Simulink function script
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 63680×1, 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!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 63680×1, 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! 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 63680×1, 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! simulink, compile time size assumption, matlab function, signal processing, code generation MATLAB Answers — New Questions