filemarker
用于分隔文件名和局部或嵌套函数名的字符
说明
m = filemarker
返回引用函数时用来将文件名与局部或嵌套函数名分开所使用的字符(默认情况下为 >
)。
示例
获取有关局部函数的帮助
获取 imwrite.m
中定义的局部函数 validateSizes
的帮助文本。
help(['imwrite' filemarker 'validateSizes'])
How many bytes does each element occupy in memory?
您也可以使用 filemarker 字符获得同样的结果。
help('imwrite>validateSizes')
How many bytes does each element occupy in memory?
在文件中的局部和嵌套函数位置停止
在程序中局部函数和嵌套函数的第一个可执行代码行设置断点。
创建文件 myfile.m
,其中包含以下语句
function n = myfile(x) n = myfunction(x); myfunction2; function z = myfunction2(x) z = x + 1; end end function y = myfunction(x) y = x + 1; end
使用 filemarker
字符在局部函数 myfunction
的位置设置断点。
dbstop in myfile>myfunction
使用 filemarker
字符在嵌套函数 myfunction2
的位置设置断点。
dbstop in myfile>myfunction2
扩展功能
基于线程的环境
使用 MATLAB® backgroundPool
在后台运行代码或使用 Parallel Computing Toolbox™ ThreadPool
加快代码运行速度。
版本历史记录
在 R2006a 中推出
MATLAB 命令
您点击的链接对应于以下 MATLAB 命令:
请在 MATLAB 命令行窗口中直接输入以执行命令。Web 浏览器不支持 MATLAB 命令。
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)