Dynamic-Calibration/utils/YALMIP-master/extras/ismembcYALMIP.m

15 lines
290 B
Mathematica
Raw Normal View History

2019-12-18 11:25:45 +00:00
function members=ismembcYALMIP(a,b)
% ismembc is fast, but does not exist in octave
% however, try-catch is very slow in Octave,
% Octave user: Just replace the whole code here
% with "members = ismember(a,b);"
try
members = ismembc(a,b);
catch
members = ismember(a,b);
end