comparison isAnyOf.m @ 592:4422c4476650 feature/utux2D

Merge with feature/grids
author Martin Almquist <martin.almquist@it.uu.se>
date Mon, 11 Sep 2017 14:17:15 +0200
parents 75f9b7a80f28
children
comparison
equal deleted inserted replaced
591:39554f2de783 592:4422c4476650
1 % Returns true of obj is any of he types in the cell array types
2 % b = isAnyOf(obj, types)
3 function b = isAnyOf(obj, types)
4 for i = 1:length(types)
5 if isa(obj, types{i});
6 b = true;
7 return
8 end
9 end
10 b = false;
11 end