Simba.Data
Simba.Data.Analysis.SignalMatExport
SignalMatExport.ToMatlabName(string) Method
Turns any text into a valid MATLAB variable name:
every character other than an ASCII letter, digit or underscore becomes _, runs of
_ collapse to one, and leading or trailing _ are removed
("DC1 - Voltage" gives DC1_Voltage). A name that is then empty becomes
EmptyNameReplacement; one that starts with a digit, or is a MATLAB keyword, gets the
prefix InvalidStartPrefix ("1st" gives sig_1st). The result is cut to
MaxVariableNameLength characters. It is not made unique here.
1 | |
Parameters
text System.String