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 = [] |
endfor elseif | ( | ischar(s) | ) |
elseif | ( | ischar(s)&&all(size(s) > 1) | ) |
elseif | ( | iscell(s) | ) |
elseif | ( | ) |
elseif | ( | length(ddelim)! | = 1 |
) |
endif if | ( | isnumeric(s) | ) | [pure virtual] |
endif if | ( | ) |
s | ( | end+ | 1 | ) |
while | ( | ix<= | sl | ) |
while | ( | ) | [new] |
while | ( | curr_row<= | lengthtmp)&&curr_col<=length(valid_delim | ) |
curr_col = 1 |
curr_elt = 0 |
flag = zeros (size (tmp)) |
ix = 1 |
return |
sl = length (s) |
status = 0 |
strarray = {} |
te = [] |
endif tmp = [1 |