Why do I see a MATLAB Coder error when building with a Kalman filter?

When trying to build a MATLAB function that returns a struct with a Kalman filter, I get the following error:
Handle Classes in top-level outputs are not supported in MATLAB Coder. Output parameter 'output1' contains a handle class.

 Accepted Answer

Kalman filters are a Handle Class Object, and currently can not be inputs or outputs to entry point functions for code generation.
https://www.mathworks.com/help/coder/ug/how-working-with-matlab-classes-is-different-for-code-generation.html#btsyar3-1

More Answers (0)

Products

Release

R2019b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!