I am getting the following error:
Input argument "s" is undefined.Error in ==> str2num at 32if ~ischar(s) || ndims(s)>2
Here is the portion of the code:
function [x,ok] = str2num(s)if ~ischar(s) || ndims(s)>2 error('MATALAB:str2num:InvalidArgument','Requires string or character array input.')endif isempty(s) x = []; ok=false; returnend
Anyone know what this might mean?
Best Answer