Syntax
[TBFL,TL]=depuseToolbox([sstr])
Input Parameter
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
- sstr: A search string to filter the files to be analyzed. Default is '*.m'.
Output Results
- TBFL: A list of Toolbox procedure usage.
- TL: A list of Toolbox procedures.
Algorithm Steps
- Set the default search string
sstr
to '*.m'. If an argument is provided, use it instead.
- Disable specific warnings related to deprecated API usage.
- Start a timer to measure execution time.
- Use the
dir
function to list all files matching the search string in the current directory.
- Initialize an empty cell array
b
to store file names.
- Loop through each file, storing its name in
b
.
- Initialize empty arrays
TBFL
and TL
to store results.
- Print the number of files being analyzed and the current directory path.
- 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
.
- Sort
TBFL
alphabetically.
- Remove duplicate entries from
TL
.
- 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