Demonstrates how to find and correct code, spelling, grammar, and stylistic errors in a Live Script with ChatGPT-4 interactively in two ways. The first requires only selecting all in the Live Script editor and pasting into a chat with a simple prompt. The result is a list of errors found and suggestions. Line numbers can be requested. ChatGPT can provide the corrected code in a text format which respects LaTeX and hyperlinks but will not reproduce additional Live Script features such as multilevel heading formats and interactive tools like sliders. The second uses the document xml file. ChatGPT will find the errors within the xml and can return corrected xml to copy paste into a corrected Live Script retaining all formatting and features.
引用格式
Duncan Carlsmith (2024). Live Script code, spelling, and grammar check with ChatGPT (https://www.mathworks.com/matlabcentral/fileexchange/165861-live-script-code-spelling-and-grammar-check-with-chatgpt), MATLAB Central File Exchange. 检索时间: .
MATLAB 版本兼容性
创建方式
R2024a
兼容任何版本
平台兼容性
Windows macOS Linux标签
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!LiveScriptCodeSpellingAndGrammarCheckWithChatGPT folder
LiveScriptCodeSpellingAndGrammarCheckWithChatGPT folder
版本 | 已发布 | 发行说明 | |
---|---|---|---|
1.0.0 |