To input a and b as class cell array of character vectors, you can use the curly braces {} to enclose the string values. Here's an example:
main.m212 chars7 lines
Alternatively, if one or both of a and b can be character vectors (string literals), you can directly assign them like this:
main.m86 chars3 lines
Note: If you are using an older version of MATLAB that does not support string literals, you can use character arrays instead of character vectors.
gistlibby LogSnag