Navigation

Operators and Keywords

Function List:

C++ API

str2double.m File Reference


Functions

 if (nargin< 1||nargin > 4) print_usage()
endif if (nargin< 2) cdelim
 elseif (length(ddelim)!=1) error("decimal delimiter must be exactly one character")
 while (curr_row<=length(tmp)&&curr_col<=length(valid_delim))
 if (tmp(curr_row)==valid_delim(curr_col)) flag(curr_row)
 elseif (tmp(curr_row)< valid_delim(curr_col)) curr_row++
 elseif (tmp(curr_row) > valid_delim(curr_col)) curr_col++
endif endwhile if (!all(flag)) error("invalid delimiters!")
endif if (isnumeric(s)) if(all(s< 256)&&all(s >=0)) s
else error ("str2double: input variable must be a string")
endif endif if (isempty(s)) num
 elseif (iscell(s)) strarray
 elseif (ischar(s)&&all(size(s) > 1)) for k
endfor elseif (ischar(s))
 s (end+1)
 while (ix< sl &&CD(ix)) ix++
 while (ix<=sl) if(ix

Variables

 function [num, status, strarray]
else cdelim = char (sort (cdelim(:)))
 tmp = [1
else rdelim = char (sort (rdelim(:)))
endif delim = sort (abs ([cdelim, rdelim, ddelim]))
column and decimal delimiter
are not 
distinct
 flag = zeros (size (tmp))
 curr_row = 1
 curr_col = 1
 status = 0
 return
endfor num = []
 strarray = {}
 RD = zeros (size (s))
for k = 1:length (rdelim)
endfor CD = RD
 curr_elt = 0
 sl = length (s)
 ix = 1
endwhile ta = ix
 te = []

Function Documentation

endfor elseif ( ischar(s)   ) 

elseif ( ischar(s)&&all(size(s) > 1)   ) 

elseif ( iscell(s)   ) 

elseif ( tmp(curr_row ,
valid_delim(curr_col  
)

elseif (  ) 

elseif ( length(ddelim)!  = 1  ) 

else error ( "str2double: input variable must be a string  ) 

endif endif if ( isempty(s)   ) 

endif if ( isnumeric(s)   )  [pure virtual]

endif endwhile if ( allflag  ) 

if ( tmp(curr_row = =valid_delim(curr_col)  ) 

endif if (  ) 

if ( nargin< 1||nargin 4  ) 

s ( end+  1  ) 

while ( ix<=  sl  ) 

while (  )  [new]

while ( curr_row<=  lengthtmp)&&curr_col<=length(valid_delim  ) 


Variable Documentation

for CD = RD

cdelim = char (sort (cdelim(:)))

curr_col = 1

curr_elt = 0

delim = sort (abs ([cdelim, rdelim, ddelim]))

column and decimal delimiter are not distinct

flag = zeros (size (tmp))

Initial value:

 str2double (s, cdelim, rdelim, ddelim)





  valid_delim = char (sort ([0, 9:14, 32:34, abs("()[]{},;:\"|/")]))

ix = 1

for k = 1:length (rdelim)

endfor num = []

for RD = zeros (size (s))

rdelim = char (sort (rdelim(:)))

return

sl = length (s)

status = 0

strarray = {}

te = []

endif tmp = [1