Mercurial > repos > public > sbplib
comparison isAnyOf.m @ 704:111fcbcff2e9 feature/optim
merg with featuew grids
author | Ylva Rydin <ylva.rydin@telia.com> |
---|---|
date | Fri, 03 Nov 2017 10:53:15 +0100 |
parents | 75f9b7a80f28 |
children |
comparison
equal
deleted
inserted
replaced
703:027f606fa691 | 704:111fcbcff2e9 |
---|---|
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 |