Some functions requires the input to be a constant, when run in Matlab Coder. I wish to find a way to declare the input as a constant before it is input as an example for the problematic situation:
function foo = subsubfunction(x,y)
[B,A]=butter(1,x/y);
This will return the error 'All inputs must be constant'
How do I declare x and y as constants so that butter() gets happy? I have tried many solutions and unfortunately not found anything really satisfying. If the command line operation coder.newtype('constant',x) could be used it would simplify everything.
numelfunction...numelto solve this problem? In which way will that ensure matlab that the input is constant?