Drag and drop PDF to MATLAB conversion with ChatGPT

Illustrates how to manually drag over a PDF to generate MATLAB code using OpenAI's ChatGPT.


Updated 1 Apr 2023

View License

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.

Cite As

Duncan Carlsmith (2023). 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 Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!


Version Published Release Notes

Add link