Syntax
[M,TL]=DIN934(M)
Input Parameter
Output Parameter
M : | | M that was used for the table entry |
TL : | | Table entry for M |
Examples
DIN934;
[M,TL]=DIN934(2.5)
Wegertseder(934)
Copyright 2020-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, named DIN934, is designed to return a table of metric thread diameters and their corresponding nut heights and Inbus wrench sizes according to the DIN934 standard. The function is part of the SolidGeometry library and was created by Tim Lueth.
Input Parameters
- M: The metric thread diameter. If no input is provided, the function defaults to M=0.
Output Results
- M: The metric thread diameter used for the table entry.
- TL: The table entry corresponding to the given metric thread diameter M.
Algorithm Steps
- If no input is provided (nargin==0), set M to 0.
- Define a table (Tab) with columns representing metric thread diameter, nut height, and Inbus wrench size.
- If M is 0, return the entire table. If no output is specified (nargout==0), display the table as a formatted array with column names 'M', 'NutHeight', and 'InbusWrench'.
- Iterate through each row of the table to find an exact match for the input M. If a match is found, return the corresponding row as TL.
- If no exact match is found, issue a warning and find the closest match by calculating the absolute difference between each table entry and M. Return the closest match as TL.
Example Usage
To retrieve the table entry for a metric thread diameter of 2.5 mm, use the following command:
[M, TL] = DIN934(2.5)
This will return the corresponding nut height and Inbus wrench size for the specified diameter.
Algorithm explaination created using ChatGPT on 2025-08-19 07:22. (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