stringpatternpermute

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Artificial Intelligence
Introduced first in SolidGeometry 5.4, Creation date: 2023-12-07, Last change: 2025-09-15

creates symbol permutation for string pattern equations

Description

Flight back from Hefei to Munich

See Also: cell2strarr , strarr2cell

Example Illustration

 missing image of stringpatternpermute(equat,symb,samp)

Syntax

[VV,LL,CC]=stringpatternpermute(equat,symb,samp)

Input Parameter

equat: string array of equation
symb: string array of symbol names
samp: cell list of samples for each symbol

Output Parameter

VV: permutation of the string pattern equations
LL: permutation of unique symbols
CC: index of LL that has been used for VV

Examples


stringpatternpermute("$A on $B",["$A" "$B"],{["TIM" "BOOK"]; ["SHELF" "BED"]})
stringpatternpermute(["$A on $B" "$A buys $B"],["$A" "$B"],{["TIM" "BOOK"]; ["SHELF" "BED"]})
stringpatternpermute(["$A on $B" "$A buys $B"],["$A" "$B"],{["TIM" "BOOK"]; ["SHELF" "BED"]}); cell2strarr(ans)
stringpatternpermute(["$A on $B" "$A buys $B"],["$A" "$B"],{["TIM" "BOOK"]; ["SHELF" "BED" "TIM"]})
[a,b,c]=stringpatternpermute(["$A on $B" "$A buys $B"],["$A" "$B"],{["TIM" "BOOK"]; ["TIM" "SHELF" "BED" "TIM"]})




Copyright 2023-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