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.
0 Downloads
Updated 4 Feb 2026

View License

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:
  1. Put this script in the same folder as your .xlsx
  2. Set inputFile and textField below
  3. 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 Linux
Tags Add Tags
Version Published Release Notes
1.0.0