To convert a double to a cell in MATLAB, use the num2cell
function. This function converts the double to a cell array with a single element.
Here's an example:
main.m265 chars10 lines
This will output:
main.m45 chars3 lines
Note that the resulting cell is a cell array with a single element, which contains the original double value.
gistlibby LogSnag