Standards for a function name
42 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Aditya Jain
am 25 Aug. 2016
Kommentiert: Aditya Jain
am 25 Aug. 2016
MATLAB has a standard that a variable can only consist of digits, letters and underscores
Is there any standard for function names?
3 Kommentare
Adam
am 25 Aug. 2016
I would assume that the same constraints on variable naming also apply to function naming.
Akzeptierte Antwort
John D'Errico
am 25 Aug. 2016
Why not read the help for functions? Surely the place to look. under
doc function
I immediately saw this line near the very top:
"Valid function names begin with an alphabetic character, and can contain letters, numbers, or underscores."
In addition, it is a terribly poor idea to use names for functions that are already in use. So calling your new function ones or zeros, or sum, is a really bad idea.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Logical finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!