MATLAB 帮助中心
本页采用了机器翻译。点击此处可查看最新英文版本。
类: mlreportgen.dom.Document 命名空间: mlreportgen.dom
关闭文档
tf = close(docObj)
tf = close(docObj) 关闭由 docObj 指定的 mlreportgen.dom.Document 对象,如果成功,则返回 1。如果 docObj 指定的对象当前未打开,则返回 0。一旦文档关闭,您就无法再向其中添加内容。关闭文档将输出任何剩余的内容,例如剩余的模板文本。
tf
docObj
mlreportgen.dom.Document
1
0
示例
全部展开
关闭 myReport 文档。
myReport
import mlreportgen.dom.*; myReport = Document('mydoc','html'); append(myReport,Paragraph('This is an introduction')); close(myReport); rptview('mydoc','html');
要关闭的文档,指定为 mlreportgen.dom.Document 对象。
在 R2014b 中推出
open | mlreportgen.dom.Document
open
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
选择网站
选择网站以获取翻译的可用内容,以及查看当地活动和优惠。根据您的位置,我们建议您选择:。
您也可以从以下列表中选择网站:
如何获得最佳网站性能
选择中国网站(中文或英文)以获得最佳网站性能。其他 MathWorks 国家/地区网站并未针对您所在位置的访问进行优化。
美洲
欧洲
亚太
联系您当地的办事处