In MATLAB, you cannot directly convert a char to a cell. However, you can use num2cell or cellstr function to perform the conversion.
Here is an example using num2cell function:
main.m150 chars9 lines
Output:
main.m74 chars2 lines
Note: The cellstr function can also be used to convert a char to a cell with each row of the char array becoming one cell.
gistlibby LogSnag