INLINEDEF: Define functions in scripts

Work around for defining functions and/or classes in scripts.

이 제출물을 팔로우합니다

INLINEDEF gives the appearance of defining a function or class in a script (minus syntax highlighting), though a separate M-file containing the function or class definition is actually auto-generated and saved on the Matlab path - and is not more specifically scoped.
The main advantage of using INLINEDEF over creating the M-file directly is centralisation of source code, that is, all source code that relates only to the script can, effectively, be stored in the script. This is useful if one's work is of quite an exploratory nature where functions often have limited use outside a specific, temporary context.

Click here for a full HTML description:
http://au.mathworks.com/matlabcentral/fileexchange/50908-inlinedef--define-functions-in-scripts/content/html/inlinedef.html

인용 양식

Max (2026). INLINEDEF: Define functions in scripts (https://kr.mathworks.com/matlabcentral/fileexchange/50908-inlinedef-define-functions-in-scripts), MATLAB Central File Exchange. 검색 날짜: .

도움

도움 받은 파일: verbatim: Get the text of a block comment.

카테고리

Help CenterMATLAB Answers에서 Files and Folders에 대해 자세히 알아보기

일반 정보

MATLAB 릴리스 호환 정보

  • 모든 릴리스와 호환

플랫폼 호환성

  • Windows
  • macOS
  • Linux
버전 퍼블리시됨 릴리스 정보 Action
1.1.0.0

Added link to HTML description
HTML description did not display on main page
Updated description
Added more complete description
Added functionality for 'uigetdir' pop-up

1.0.0.0

Added examples in the Description section