MATLAB: Num2str error I am using 2014b, and a script was written on 2011b. The error is pretty random since it is a mathworks code I am getting. Error in num2str (line 66) xmax = double(max(abs(widthCopy(:)))); Not sure what to do! Best Answer You get this error if you try to use num2str with a cell formats={'123'}out=num2str(s)s should be a numbers=123out=num2str(s)or a strings='123'out=num2str(s) Related SolutionsMATLAB: Str2num error If you run it with the following commandstr2numyou will get this error. Trystr2num('2')I am assuming that you saved str2num in a file str2num.m. Do you know that MATLAB has a builtin function str2num? MATLAB: Error with using sprintf >> a={'abc'}a = 1×1 cell array {'abc'}>> sprintf('%s',a)Error using sprintfFunction is not defined for 'cell' inputs. >> sprintf('%s',a{1})ans = 'abc' Related QuestionHow to use Num2strError in using strcmpHow to delete a cell in gui
Best Answer