MATLAB: String function not found

string

i have a cell array defined as
class = {'good','bad','good','bad','good','bad','good','bad'};
and i am trying to create a string array from this cell array and hence i use the function class = string(class) but i am getting this error
Undefined function 'string' for input arguments of type 'cell'.
and I am assuming this could just be because of the version of my MATLAB provided by the university does not have this function installed but is there anyway to solve this problem?

Best Answer

the string function is not available for versions of MATLAB before 2016b.
Related Question