reportCellArrays reports all expressions that assign or create cell arrays that are not arrays of character arrays or arrays of heterogeneous objects. Cell array assignments where the cells are of unknown type are reported based on a parameter value. Using cell arrays for for example numbers or logicals is often discouraged because it is unnecessary, more difficult to read, or because it leads to poorer performance. By using the fourth preference described in section Preferences, you can choose whether or not to ignore cells of unknown datatype for this report. CC4M cannot reliably determine the datatype of the cell assigned in every case. For the unknown cases, you can choose whether to report them or not. If this is set to false, all results that are reported are violations for which it is certain the assigned cell is not an object nor a character array.

Note: Since R2023a is it possible to assign values in dictionaries with cell values using curly braces, {}. These will be treated in the same fashion as assignments in cell arrays.

Exemption tag: %@ok<CELAR>