A Matlab implementation of the Key Word in Context (KWIC) system as described by "Modularization 1" in David L. Parnas' paper "On the Criteria To Be Used in Decomposing Systems into Modules" (1972).
Ensure that the KWIC folder is on your Matlab search path. For best results, use Matlab R2019a.
In the Matlab Command Window, type:
KWICmaster;
or
KWICmaster('example.txt');
or
KWICmaster(['Example text' newline 'More words']);