Functions | |
endif | if (nargin==1) just |
if (!isempty(idx)) x(idx) | |
if (strcmp(just,"right"))[N | |
elseif (strcmp(just,"left"))[N | |
endfunction!error< Invalid call to strjust > | strjust () |
!error< Invalid call to strjust > | strjust (["a";"ab"],"center", 1) |
!assert (strjust(["a";"ab";"abc";"abcd"]),%![" a";" ab";" abc";"abcd"]) | |
!assert (strjust(["a";"ab";"abc";"abcd"],"center"),%![" a ";" ab";"abc ";"abcd"]) | |
Variables | |
function | x |
endif | just = tolower (just) |
idx = find (toascii (x) == 0) | |
endif [nr, nc] = size (x) | |
hi = max (cumsum (idx)) | |
shift = hi | |
lo = max (cumsum (flipud (idx))) | |
else [N, hi] = max (cumsum (idx)) |
elseif | ( | strcmp(just,"left") | ) |
if | ( | strcmp(just,"right") | ) |
if | ( | ! | isemptyidx | ) |
!error<Invalid call to strjust> strjust | ( | "center" | , | |
1 | ||||
) |
endfunction !error<Invalid call to strjust> strjust | ( | ) |
hi = max (cumsum (idx)) |
endif idx = find (toascii (x) == 0) |
lo = max (cumsum (flipud (idx))) |