Standards for a function name
조회 수: 40 (최근 30일)
이전 댓글 표시
MATLAB has a standard that a variable can only consist of digits, letters and underscores
Is there any standard for function names?
댓글 수: 3
Adam
2016년 8월 25일
I would assume that the same constraints on variable naming also apply to function naming.
채택된 답변
John D'Errico
2016년 8월 25일
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.
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Logical에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!