Unable to use "cholupdate" in a Simulink Matlab function made for C code generation

Asked by Johan on 31 Jul 2013 at 7:38
Latest activity Answered by Ryan Livingston about 10 hours ago

I have made a model in Simulink that contains a Matlab function block. When I try to use "cholupdate" I only get the following error: "Undefined function or variable 'cholupdate'."

Is it not possible to use cholupdate in a Simulink Matlab function (made for automatic C code generation)? I use Matlab R2013a and I can use cholupdate outside of Simulink.

"Chol" seems to work and I also get the help text for cholupdate in the editor.

If it is not possible to use cholupdate I would appreciate if someone could show me / post a link on how to implement it myself! I am looking for the Cholesky factor of then rank 1 downdate.

0 Comments

Johan

1 Answer

Answer by Ryan Livingston about 10 hours ago

CHOLUPDATE is not supported for code generation. You can see an exhaustive list of functions which are supported here:

http://www.mathworks.com/help/coder/ug/functions-supported-for-code-generation--alphabetical-list.html

0 Comments

Ryan Livingston

Contact us