depuseTL

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.5 - CODING/DEVELOP
Introduced first in SolidGeometry 3.3, Creation date: 2017-01-13, Last change: 2025-07-20

return which fncts in the current directory uses a named fnct

Description

in most cases "depuseString" is much faster but cannot distinguish code and comments and strings that are part of strings. depuseTL uses depuseString (which grep) before using
matlab.codetools.requiredFilesAndProducts

See Also: depuseTL2013 , depuseString

Example Illustration

 missing image of depuseTL(fname)

Syntax

a=depuseTL(fname)

Input Parameter

fname: function to search for

Output Parameter

a: list of function




Copyright 2017-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 algorithm is designed to identify which functions in the current directory use a specified function, referred to as fname. It is part of the SolidGeometry library and was developed by Tim Lueth.

Input Parameters

Output Results

Algorithm Steps

  1. Use the which function to determine the path of fname. If fname is not a MATLAB function, print an error message and suggest using depuseString instead.
  2. Call depuseString with fname and true as arguments to get a preliminary list of files that might use fname.
  3. Determine the number of files na and print a message indicating the analysis of these files.
  4. Initialize an array ai to keep track of which files actually use fname.
  5. Iterate over each file in the list:
  6. Filter the list a to include only those files marked in ai.
  7. For each file in the filtered list, update its path using which.
  8. Remove fname from the list a to ensure it is not included in the results.
Algorithm explaination created using ChatGPT on 2025-08-19 07:13. (Please note: No guarantee for the correctness of this explanation)

Last html export of this page out of FM database by TL: 2025-08-09