If you need to hand in your code, or want to publish your code somewhere, you might want to check spelling and grammar of your comments. Copy-pasting is less than ideal, because the code makes it easy to miss real errors.
This script will split your code into two file: a code part and a comment part. The latter is renamed to a .txt so you can open it in your favorite editor. After you have checked the files for errors, it puts the two parts back together again.
This script should work on all Matlab releases and on Octave.
Rik (2022). grammar and spelling check (https://www.mathworks.com/matlabcentral/fileexchange/62409-grammar-and-spelling-check), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!