Community Profile # Duncan Carlsmith

### University of Wisconsin - Madison

Last seen: Today Active since 2022

Physics professor active in computational physics education for 1st-year university students.

Programming Languages:
Python, C++, MATLAB, HTML, Fortran
Spoken Languages:
English

#### Statistics

All
• • • • • • • #### Content Feed

View by

Submitted

Explain MATLAB code with ChatGPT
Illustrates code explication with ChatGPT. How to delete all the commented content in a m-file?
% Read the contents of the file into a string variable filename='Your_File.m' % Use fopen to open the file for reading fi...

3 days ago | 0

Submitted

Generate MATLAB for non-English speakers with ChatGPT
Illustrates French and Turkish scripts generated with OpenAI's ChatGPT Submitted

Translate Python To MATLAB With ChatGPT Programmatically
Reads python code from a url and generates MATLAB code using OpenAI's ChatGPT. Submitted

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. Submitted

Translate LaTeX to MATLAB with ChatGPT
This script illustrates the translation of LaTeX math into MATLAB code with OpenAI's ChatGPT. Submitted

Access Mathematica and ChatGPT-generate MATLAB code via APIs
Access Wolfram Alpha and ChatGPT-generate corresponding MATLAB code. Submitted

Taut String Driven At One End With Realistic Drag
Models numerically the motion of a taut string driven at one end with linear and nonlinear drag. Submitted

Driven Coupled Oscillator Explorer
Examines analytic solutions for driven coupled oscillators exhibiting antiresonance. Submitted

Nonlinearly-damped oscillator simulation
Simulates a driven harmonic oscillator with nonlinear damping and compares results to a resonance model with amplitude-dependent... Multiple roots formula with Matlab
Not likely the point of the exercise but this works: syms x; solve(x^4- 6*x^3 + 12*x^2 - 10*x +3==0,'ReturnConditions',true) ...

25 days ago | 0

Submitted

Generate unit-tested ChatGPT MATLAB codes
Generates and tests multiple MATLAB scripts generated by OpenAI's ChatGPT. Connecting to ChatGPT using API
See Generate MATLAB code using ChatGPT API at https://www.mathworks.com/matlabcentral/fileexchange/125220-generate-matlab-code-...

1 month ago | 2

Submitted

Generate MATLAB Code Using ChatGPT API
Generates a commented MATLAB Live Script using the OpenAI API for ChatGPT. Submitted

ChatGPT Generated MATLAB program
Example simple MATLAB program generated by ChatGPT. Submitted

Shaken String Explorer
Explores the analytic form for waves on a string driven by harmonic motion of one support point. Submitted

Fit PASCO Motion Sensor Data
Illustrates nonlinear regression applied to motion sensor data from an introductory physics lab. Submitted

Harmonic Oscillator Explorer
Illustrates a suite of symbolic solutions for a forced damped harmonic oscillator and parameter extraction in the presence of tr... Submitted

SimplePendulumExplorer
Calculates motion of a nonlinear pendulum and simulates laboratory measurements and analysis. Submitted

SampleArbitraryProbabilityDistributionExplorer
Explores generation of samples from a single variable probability distribution. Submitted

Bouncing Ball Explorer
Analyzes and models audio recordings of a ball bouncing on a hard surface. Submitted

DiffractionCalculator
Calculates the diffraction pattern for a planar rectangular aperture by numerical integration. Submitted

Magnetic Field of Bar Magnet
Calculates the magnetic field in an air gap between poles tips of long uniformly magnetized cylinders. Submitted

Duhdohnium
Calculates and simulates the probability distributions for sums of combinations of Platonic dice. Submitted

DiceSums
Numerical and symbolic probability distribution for a sum of dice with any number, weights, and integral face values (positive o... Submitted

World's Fastest Simplest Electric Train
Optimizes parameters of the world's simplest electric train for maximum speed. Submitted

Stacked Ball Drop
Velocity amplification in dropping a stack of balls is analyzed. Submitted

Calceph Ephemeris Calculations With INPOP and JPL files
Tests calceph package for accessing INPOP and JPL ephemeris files with MATLAB. Submitted

ElectricFieldOfAcceleratedCharge3d
Calculates and visualizes electric field lines of one or more accelerated relativistic electric charges in three dimensions.  