matlab Conversion to cell from char is not possible.

terms of settlement:

Add ‘{}’ before the value to be assigned to the cell

For example:

class_id(1)='cafe';

It should be changed to,

class_id(1)={'cafe'};

Read More: