Syntax
xyzlabel([c])
Input Parameter
c : | | 'on' or 'none' or 'off'; default is 'on' |
Examples
figure; view(-30,30);
xyzlabel('on'); shg
xyzlabel('off'); shg
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)
The function xyzlabel
is designed to set or remove the labels of the x, y, and z axes in 3D plots. It is part of the SolidGeometry library and was introduced in version 5.0. The function takes a single optional input parameter.
Input Parameters
- c: A string that can be 'on', 'none', or 'off'. The default value is 'on'.
Algorithm Steps
- The function begins by retrieving the input parameter
c
using the getfuncparams
function. If no parameter is provided, it defaults to 'on'.
- A
switch
statement is used to handle different values of c
:
- Case 'off' or 'none': This case removes the labels from the x, y, and z axes by setting them to empty strings.
- Case 'on': This case sets the labels of the x, y, and z axes to 'x-Axis', 'y-Axis', and 'z-Axis', respectively.
- Case '???': This case calls the function
SGshowlocalswitchcaseconditions
, which is presumably used for debugging or displaying available switch case conditions.
- Otherwise: This is a catch-all case that currently does nothing.
Algorithm explaination created using ChatGPT on 2025-08-18 22:42. (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