主要内容

字符串

解析HTML树转换为字符串

自从R2018b

    描述

    例子

    str=字符串()转换htmlTree对象字符串。

    提示

    使用字符串函数来帮助检查的基本HTML代码htmlTree对象。导航的元素htmlTree对象,使用findElement函数。

    例子

    全部折叠

    从URL读取HTML代码//www.tatmou.com/help/textanalytics使用webread函数。

    url =“//www.tatmou.com/help/textanalytics”;代码= webread (url);

    解析HTML代码使用htmlTree函数。

    树= htmlTree(代码);

    找到所有的段落使用HTML树findElement函数。段落与元素名称“P”节点。

    子树= findElement(树,“P”);

    使用子树转换为字符串字符串函数。

    str =字符串(子树)
    str =26日×1的字符串h1“< P类= >↵< A href = " . . /索引。html coming_from_product“类= >文档< / >↵< A href = " . . /索引。html”类= " not_coming_from_product " > < / >帮助中心↵< / P > " " < P >文本分析工具箱™提供预处理的算法和可视化、分析、建模和文本数据。使用工具箱创建的模型可以用于应用,如情绪分析、预测性维护,和主题建模。< / P > " < P >文本分析工具箱包括工具处理原始文本来源设备日志等新闻,调查,运营商报告,和社交媒体。你可以从流行的文件格式中提取文本,原始文本进行预处理,提取单词,将文本转换成数值表示,并建立统计模型。< / P > " < P >使用机器学习技术,如LSA, LDA,字嵌入的,你可以找到集群和从高维文本数据集创建功能。特征与文本分析工具箱可以创建结合特性从其他数据源构建机器学习模型,利用文本,数字,和其他类型的数据。< / P > " < P class = " category_desc " >学习基本的文本分析工具箱< / P > " < P class = " category_desc " >文本数据导入MATLAB®<一口> < /一口>和预处理分析< / P > " < P class = " category_desc " >开发预测模型使用主题模型和词嵌入的< / P > " < P class = " category_desc " >可视化文本数据和模型使用云词和文本散点图< / P > " < P class = " category_desc " >语言支持的信息以文本分析工具箱< / P > " < P >你点击一个链接对应MATLAB命令:< / P > " < P >运行该命令通过输入MATLAB命令窗口。金宝appWeb浏览器不支持MATLAB命令。金宝app< / P > " < P >选择一个网站翻译内容,看到当地事件和提供。 Based on your location, we recommend that you select: .

    " "

    You can also select a web site from the following list:

    " "

    Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.

    " "

    Contact your local office

    " "

    Explore Products

    " "

    Try or Buy

    " "

    Learn to Use

    " "

    Get Support

    " "

    About MathWorks

    " "

    MathWorks

    " "

    Accelerating the pace of engineering and science

    " "

    MathWorks is the leading developer of mathematical computing software for engineers and scientists.

    " "

    Discover...

    " "" "

    Join the conversation

    "

    输入参数

    全部折叠

    HTML树,指定为一个htmlTree数组中。

    输出参数

    全部折叠

    字符串,作为字符串数组返回相同的大小

    版本历史

    介绍了R2018b

    全部展开