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.
243 Downloads
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 (2026). Drag and drop PDF to MATLAB conversion with ChatGPT (https://uk.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
Version Published Release Notes
1.0.1

Add link

1.0.0