I am trying to convert the entire cell array below to cell array of strings and I am using:
C = cellfun(@num2str, final, 'UniformOutput', false);
final =
{'3F' 21 'F' '3/26/2014' 'P0702' [] [] [] [] [] [] []
'3F' 201 'F' '11/4/2014' 'P0702' 'P0882' [] [] [] [] []
'3F' 010 'F' '10/19/2014''P0715' 'P0717' [] [] [] [] []
'3L' 014 'M' '12/8/2014' 'P0710' 'P0743' 'P0753' [] [] [] }
It gives me an error
??? Undefined function or method 'fix' for input arguments of type 'cell'.
Error in ==> num2str at 66 if ~isempty(x) && isequalwithequalnans(x, fix(x))
I have tried the required data type conversion but i am missing it somewhere. Any help would be appreciated.Thanks
final? If I correct the syntax error, the conversion works well. - user3667217final = {'3F' 21 'F'.....}but not{final} ='3F' 21 'F'.....` - user3667217