Drag and drop PDF to MATLAB conversion with ChatGPT
Version 1.0.1 (1.34 MB) by
Duncan Carlsmith
Illustrates how to manually drag over a PDF to generate MATLAB code using OpenAI's ChatGPT.
So imagine you are interested in understanding better, say, the 1/v energy dependence of the cross section for neutron-induced fission on uranium (why thermal energy neutrons are good, high energy neutrons not so much), and you find this lovely optical-analog paper in pdf form [1] and just gotta play with a formula there.
Drag over the paragraph in the pdf and drop onto ChatGPT with the directive "convert to MATLAB code". The results are a good start!
This script may be interest researchers and MATLAB users.
View anbd like related scripts at https://www.mathworks.com/matlabcentral/fileexchange/?q=carlsmith&sort=date_desc_submitted.
Cite As
Duncan Carlsmith (2024). Drag and drop PDF to MATLAB conversion with ChatGPT (https://www.mathworks.com/matlabcentral/fileexchange/126515-drag-and-drop-pdf-to-matlab-conversion-with-chatgpt), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2023a
Compatible with any release
Platform Compatibility
Windows macOS LinuxTags
Acknowledgements
Inspired by: Generate unit-tested ChatGPT MATLAB codes, ChatGPT Generated MATLAB program, Translate LaTeX to MATLAB with ChatGPT, Access Mathematica and ChatGPT-generate MATLAB code via APIs
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.