Provide the filename of the m-file and a boolean is returned that is true if the m-file is a script (i.e. it has no function declaration or classdef).
Cite As
Folkert (2026). isscript (https://www.mathworks.com/matlabcentral/fileexchange/42969-isscript), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2012b
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
Find more on Software Development Tools in Help Center and MATLAB Answers
Tags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0.0 |
