ismember_interaction¶
- ismember_interaction(targetInteraction, interactionsList)¶
ISMEMBER_INTERACTION Check whether interaction strings are members of a list, case- and order-insensitive
- Usage:
tf = ismember_interaction(targetInteraction, interactionsList)
- Inputs:
targetInteraction : char or cell of char - target interaction(s) of the form ‘A:B’ – required interactionsList : cell of char - list of interactions to search within – required
- Outputs:
tf : 1xM logical - true where targetInteraction{m} matches any entry in interactionsList
Notes
Comparisons are case-insensitive, order-insensitive (so ‘A:B’ and ‘B:A’ are equivalent), and treat ‘:’, ‘&’, and ‘-’ as equivalent separators.
Example
interactions = {‘stage:SOphase’, ‘stage:history’}; target = {‘soPHASE&stage’,’stage:SOpower’}; tf = ismember_interaction(target, interactions); % [1 0]
See also: ismember, specify_mdl, build_design_mt
∿∿∿ Prerau Laboratory MATLAB Codebase · sleepEEG.org ∿∿∿