This is an extension to the question here. When I try to generate code, during the trial code generation I get the following in the trackingKF constructor: Inner dimensions must agree. Generated code for a general matrix multiplication at this call site. If this should have been a scalar times a variable-size matrix, the scalar input must be fixed-size.
All of my arguments to the constructor have a fixed size, and when I run my methods through matlab, which runs fine, the sizes match up. A: 8x8 double H: 4x8 double state: 8x1 double stateCov = 8x8 double MeasurementNoise = 4x4 double Q = 8x8 double Here is the constructor that code generation fails on: filter = trackingKF(... A, ... H, ... 'State', state, ... 'StateCovariance', stateCov, ... 'MeasurementNoise', Detection.MeasurementNoise, ... 'ProcessNoise', Q);