Question: Why does Matlab CodeGeneration fail to optimize, and fail to name the function, when a procedure returns an array

A := Matrix(2, 2):
CodeGeneration:-Matlab(unapply(A), optimize, resultname = "A");

Warning, unable to optimize
Warning, procedure/module options ignored
function Areturn = A()
  Areturn = [0 0; 0 0;];

What is this behaviour. I can't find any explanation online.

Please Wait...