Functions | |
if (!warned) warned | |
warning ("Octave:deprecated-function","intersection is obsolete and will be removed from a future version of Octave; please use intersect instead") | |
endfunction | !assert (all(all(intersection([1, 2, 3],[2, 3, 5])==[2, 3]))) |
!assert (all(all(intersection([1;2;3],[2, 3, 5])==[2, 3]))) | |
!assert (isempty(intersection([1, 2, 3],[4;5;6]))) | |
!error | intersection (1) |
!error | intersection (1, 2, 5) |
Variables | |
function | y |
!assert | ( | isempty(intersection([1, 2, 3],[4;5;6])) | ) |
endfunction !assert | ( | all(all(intersection([1, 2, 3],[2, 3, 5])==[2, 3])) | ) |
if | ( | ! | warned | ) |
!error intersection | ( | 1 | , | |
2 | , | |||
5 | ||||
) |
!error intersection | ( | 1 | ) |
warning | ( | "Octave:deprecated-function" | , | |
"intersection is obsolete and will be removed from a future version of Octave; please use intersect instead" | ||||
) |
endif y |
Initial value:
intersection (varargin) persistent warned = false