To extract the text data from a web page, first use the webread function to read the HTML code. Then use the extractHTMLText function on the returned code.
str =
'Text Analytics Toolbox
Analyze and model text data
Release Notes
PDF Documentation
Release Notes
PDF Documentation
Text Analytics Toolbox™ provides algorithms and visualizations for preprocessing, analyzing, and modeling text data. Models created with the toolbox can be used in applications such as sentiment analysis, predictive maintenance, and topic modeling.
Text Analytics Toolbox includes tools for processing raw text from sources such as equipment logs, news feeds, surveys, operator reports, and social media. You can extract text from popular file formats, preprocess raw text, extract individual words, convert text into numerical representations, and build statistical models.
Using machine learning techniques such as LSA, LDA, and word embeddings, you can find clusters and create features from high-dimensional text datasets. Features created with Text Analytics Toolbox can be combined with features from other data sources to build machine learning models that take advantage of textual, numeric, and other types of data.
Get Started
Learn the basics of Text Analytics Toolbox
Text Data Preparation
Import text data into MATLAB® and preprocess it for analysis
Modeling and Prediction
Develop predictive models using topic models and word embeddings
Display and Presentation
Visualize text data and models using word clouds and text scatter plots
Language Support
Information on language support in Text Analytics Toolbox'
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.
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: United States.
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.