N-gram Analysis
Version 1.0.0 (4.34 KB) by
Graham
Code is designed to take in a file from SCOPUS and perform N-gram (2-gram, 3-gram, and 4-gram) to help identify simple themes.
N-gram topic scan for bibliometric exports (Scopus-style headings).
- Reads an Excel file with a 'Title' column (and optionally 'Abstract').
- Cleans text with a generic English stoplist.
- Filters out copyright statements
- Generates 2, 3, 4-grams; ranks and plots top terms; exports CSV summaries.
Usage:
- Put this script in the same folder as your .xlsx
- Set inputFile and textField below
- Run
Cite As
Graham (2026). N-gram Analysis (https://uk.mathworks.com/matlabcentral/fileexchange/183188-n-gram-analysis), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2025b
Compatible with any release
Platform Compatibility
Windows macOS LinuxTags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0 |
