Syntax
im=ismemberFL(FLA,FLB)
Input Parameter
FLA : | | Facet List A |
FLB : | | Facet List B |
Output Parameter
Examples
FLA=[1 2 3; 4 5 6; 7 8 9]; FLB=[2 3 1; 6 5 4; 9 7 8];
ismemberFL(FLA,FLB)
Copyright 2018-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
Algorithm (Workflow)
This function, ismemberFL
, is designed to determine if each row of a facet list A (FLA) is present in a facet list B (FLB) in any of three possible configurations. It is part of the SolidGeometry library.
Input Parameters
- FLA: A matrix representing Facet List A, where each row is a facet.
- FLB: A matrix representing Facet List B, where each row is a facet.
Output
- im: A logical column vector where each element indicates whether the corresponding row in FLA is present in FLB in any of the three configurations.
Algorithm Steps
- Check if FLB is empty. If it is, return a logical vector of
false
with the same number of rows as FLA, as no facets can match.
- Use the
ismember
function to check if each row of FLA is present in FLB in three configurations:
- Directly as it is.
- With the columns of FLB circularly shifted by one position to the right.
- With the columns of FLB circularly shifted by two positions to the right.
- Combine the results of the three
ismember
checks using the logical OR operator (|
), resulting in a logical vector im
that indicates presence in any configuration.
Algorithm explaination created using ChatGPT on 2025-08-18 22:50. (Please note: No guarantee for the correctness of this explanation)
Last html export of this page out of FM database by TL: 2025-09-21