ismemberincell
by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Auxiliary function
Introduced first in SolidGeometry 4.9, Creation date: 2020-07-22, Last change: 2025-09-14
finds the logical indices of an member inside a cell list of DIFFERENT types
Description
This function is for cell lists with DIFFERENT types
for strings in cell list think about
- contains(l,'.m:%')
- startsWith(l,'SG')
- ismember
there is no need for ismemberincell for identical types
Failed in 'R2020b Update 6' and was repaired in SG-LIB 5.1 by introducing function celltype
See Also: ismemberincell
, celltype
Example Illustration
Syntax
a=ismemberincell(C,c,[csens,fullc])
Input Parameter
C: | | Cell list |
c: | | Single entry to find |
csens: | | character sensitive; default is false |
fullc: | | full compare instead of starting chars; default is false |
Output Parameter
Examples
A={'A', 0, pi, {'A','B'}}
ismemberincell(A,pi)
ismemberincell(A,'A')
ismemberincell(A,{'A','B'})
Copyright 2020-2025 Tim C. Lueth. All rights reserved. The code is the property of Tim C. Lueth and may not be redistributed or modified without explicit written permission. This software may be used free of charge for academic research and teaching purposes only. Commercial use, redistribution, modification, or reverse engineering is strictly prohibited. Access to source code is restricted and granted only under specific agreements. For licensing inquiries or commercial use, please contact: Tim C. Lueth
Last html export of this page out of FM database by TL: 2025-09-21