depuseToolbox

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.5 - CODING/DEVELOP
Introduced first in SolidGeometry 2.8, Creation date: 2015-10-25, Last change: 2025-07-30

analyzes the current directory for the use of MATLAB Toolbox procedure



See Also: depuseString , depuseTL , publishTL , pcodeTL , depfunTL , pcodedirTL

Example Illustration

 missing image of depuseToolbox(sstr)

Syntax

[TBFL,TL]=depuseToolbox([sstr])

Input Parameter

sstr: search string

Output Parameter

TBFL: Toolbox functions usage list
TL: Toolbox functions list

Examples

Check all VLFL_Examples for Toolbox use:
depuseToolbox ('VLFL_EX*.m')




Copyright 2015-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, depuseToolbox, analyzes the current directory for the use of MATLAB Toolbox procedures. It is part of the SG-Library and was introduced in SolidGeometry 2.8.

Input Parameters

Output Results

Algorithm Steps

  1. Set the default search string sstr to '*.m'. If an argument is provided, use it instead.
  2. Disable specific warnings related to deprecated API usage.
  3. Start a timer to measure execution time.
  4. Use the dir function to list all files matching the search string in the current directory.
  5. Initialize an empty cell array b to store file names.
  6. Loop through each file, storing its name in b.
  7. Initialize empty arrays TBFL and TL to store results.
  8. Print the number of files being analyzed and the current directory path.
  9. For each file:
    • Print progress every 50 files.
    • Call depfunTL to get dependencies of the file.
    • Find indices of dependencies that contain '/TOOLBOX/'.
    • Store these dependencies in l.
    • Append l to TL.
    • For each dependency in l, append a string indicating which file uses it.
    • Append these strings to TBFL.
  10. Sort TBFL alphabetically.
  11. Remove duplicate entries from TL.
  12. Print the elapsed time.
Algorithm explaination created using ChatGPT on 2025-08-19 07:03. (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