Functions | |
if (!warned) warned | |
warning ("Octave:deprecated-function","create_set is obsolete and will be removed from a future version of Octave, please use unique instead") | |
endif | if (nargin< 1||nargin > 2) print_usage() |
endif | if (nargin==1) y |
elseif (strcmpi(rows_opt,"rows")) y | |
else | error ("create_set: expecting \"rows\" as second argument") |
endif endfunction | !assert (all(all(create_set([1, 2, 3, 4, 2, 4])==[1, 2, 3, 4]))) |
!assert (all(all(create_set([1, 2;3, 4;2, 4])==[1, 2, 3, 4]))) | |
!assert (all(all(create_set([1;2;3;4;2;4])==[1, 2, 3, 4]))) | |
!assert (isempty(create_set([]))) | |
!error | create_set (1, 2) |
Variables | |
function | y |
!assert | ( | isempty(create_set([])) | ) |
endif endfunction !assert | ( | all(all(create_set([1, 2, 3, 4, 2, 4])==[1, 2, 3, 4])) | ) |
!error create_set | ( | 1 | , | |
2 | ||||
) |
elseif | ( | strcmpi(rows_opt,"rows") | ) |
else error | ( | "create_set: expecting \"rows\" as second argument" | ) |
if | ( | ! | warned | ) |
warning | ( | "Octave:deprecated-function" | , | |
"create_set is obsolete and will be removed from a future version of | Octave, | |||
please use unique instead" | ||||
) |
function y |
Initial value:
create_set (x, rows_opt) persistent warned = false