saveTL

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Auxiliary function
Introduced first in SolidGeometry 4.9, Creation date: 2020-08-17, Last change: 2025-09-14

a modified version of the save command

Description

Matlab save command uses the first argument as name of the file and further arguments as names of variables. In contrast, this function takes the name of a variable and saves it under the same filename

See Also:

Example Illustration

 missing image of saveTL(vname,fname,copyn)

Syntax

saveTL(vname,[fname,copyn])

Input Parameter

vname: variable name to save under the same name as .mat file
fname: filename
copyn: if true; the variable name changes to fname

Examples


A=SGbox
saveTL(A) % in file A.mat is only variable A
clear all; load A; whos
saveTL(A,'B',false) % in file B.mat is only one variable A
clear all; load B; whos
saveTL(A,'B') % in file B.mat is only one variable B
clear all; load B; whos




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

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