⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 isscript.m

📁 Toolbox for biomedical signal processing
💻 M
字号:
function [s] = IsScript(fn)%IsScript: Returns 1 if a .m file is a script, returns 0 otherwise%%   s = IsScript(fn)%%   fn   Name of function (text).       %%   s    Flag: 1 if is a script, 0 otherwise   %%   This is primarily designed to allow .m files to determine %   automatically whether they are being called as a script or not. %   This operates by scanning the first line in the file to determine%   whether it begins with the word 'function' or not.%%   Example: Determine whether the file named 'Spectrogram.m' is %   a script or not.%%      s = IsScript('Spectrogram');%%   Version  1.00 JM%%   Desmond J. Higham and Nicholas J. Higham, "MATLAB Guide," 2000.%%   See also mfilename, which, and strncmpi.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -