62 results

Generates a commented MATLAB Live Script using the OpenAI API for ChatGPT.

scripts at https://www.mathworks.com/matlabcentral/fileexchange/?q=carlsmith&sort=date_desc_submitted .

Illustrates translation of a simple R script to MATLAB, and back to R, using OpenAI's ChatGPT.

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

https://www.mathworks.com/matlabcentral/fileexchange/?q=carlsmith&sort=date_desc_submitted

Generates and tests multiple MATLAB scripts generated by OpenAI's ChatGPT.

receive an API secret key at https://platform.openai.com/account/api-keys.See and like related scripts at https://www.mathworks.com/matlabcentral/fileexchange/?q=carlsmith&sort=date_desc_submitted

Example simple MATLAB program generated by ChatGPT.

Compares responses from OpenAI's ChatGPT to Google's Bard for identical code generation prompts.

for some simple MATLAB codes.View at like related scripts at https://www.mathworks.com/matlabcentral/fileexchange/?q=carlsmith&sort=date_desc_submitted

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

https://www.mathworks.com/matlabcentral/fileexchange/?q=carlsmith&sort=date_desc_submitted.

Live Script exploring rotations of Cartesian vectors and parametric surfaces.

Illustrates code explication with ChatGPT.

https://www.mathworks.com/matlabcentral/fileexchange/?q=carlsmith&sort=date_desc_submitted.

Live Script exploring numerical and symbolic calculus.

Access Wolfram Alpha and ChatGPT-generate corresponding MATLAB code.

https://www.mathworks.com/matlabcentral/fileexchange/?q=carlsmith&sort=date_desc_submitted

Illustrates French and Turkish scripts generated with OpenAI's ChatGPT

limericks maybe.View and like related scripts at https://www.mathworks.com/matlabcentral/fileexchange/?q=carlsmith&sort=date_desc_submitted

This Live Script illustrates how to solve a simple physics problem with MATLAB symbolic and numerical methods.

Calculates the magnetic field in an air gap between poles tips of long uniformly magnetized cylinders.

Illustrate maximum likelihood estimation of a custom probability distribution

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

Finds frequency of spark generator from audio recording.

Finds stars in a mobile phone night sky image using median-subtraction and peak-finding and compares to results from astrometry.net.

Calculates and displays the exact magnetic field of an ideal cylindrical current sheet making use of MATLAB elliptic integral functions.

Explores open gravitational wave data from the LIGO collaboration.

Profiles the magnetic field along a selectable curve for a helical (solenoidal or toroidal) current loop using the Biot-Savart law.

Illustrates ways to numerically calculate and visualize the electric field and electric potential of charge distributions in 3D.

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

A Live Script that shows how to perform a simple camera calibration using an image of stars.

Illustrates nonlinear regression applied to motion sensor data from an introductory physics lab.

An introduction to MATLAB for physics students.

Examines analytic solutions for driven coupled oscillators exhibiting antiresonance.

Explores original transit signal evidence for seven Earth-sized exoplanets planets in the Trappist-1 system.

Tests calceph package for accessing INPOP and JPL ephemeris files with MATLAB.

Simulates a driven harmonic oscillator with nonlinear damping and compares results to a resonance model with amplitude-dependent width.

Examines open data samples from the CMS experiment at the Large Hadron Collider.

Explores positions, velocities, magnitudes, and colors of 118k nearby Hipparcos single stars and clusters.

Illustrates funny MATLAB codes generated by ChatGPT for April Fool's Day.

Introduces matrix optical system analysis and simulates how to determine a system matrix from object and image distance measurements.

Illustrates a suite of symbolic solutions for a forced damped harmonic oscillator and parameter extraction in the presence of transients.

Explores native use of exiftool for image metadata editing.

Models numerically the motion of a taut string driven at one end with linear and nonlinear drag.

Provides and illustrates functions to transform between RA and DEC and image XY using FITS WCS information.

Converts right ascension (RA) and declination (Dec) to and from altitude (Alt) and azimuth (Az) and compares to star gazing apps.

This Live Script examines 1d and 2d motions of a particle subject to a constant force governed by relativistic mechanics.

Downloads a JPL Horizons ephemeris using the API and creates coordinate interpolating functions.

Matches star candidate right ascension, declination, and magnitude to Yale Bright Star and Henry Draper catalogs.

Reads python code from a url and generates MATLAB code using OpenAI's ChatGPT.

Live Script.View and like related scripts at https://www.mathworks.com/matlabcentral/fileexchange/?q=carlsmith&sort=date_desc_submitted

Explores IAU, HD, YBS, GCVS, and open-source star catalogs, BAA variable star data, IAU constellation boundaries, and asterism lines.

Creates simulated outdoor shadows and pinhole images of the Sun (dappled light) from still and video images of real foliage.

Velocity amplification in dropping a stack of balls is analyzed.

Examples of MATLAB code generation with BING.

DiceSums

Version 1.0.2

by Duncan Carlsmith

Numerical and symbolic probability distribution for a sum of dice with any number, weights, and integral face values (positive or negative).

Two nonlinear methods to fit multidimensional paths

Explores generation of samples from a single variable probability distribution.

Optimizes parameters of the world's simplest electric train for maximum speed.

Live Script explores image processing of a stained glass window image and makes color panel arrays ala artist Gerhard Richter.

Explores published asteroid shape models and computes asteroid inertial moments and gravitational fields assuming constant density.

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

Illustrates how to download and explore GAIA astrometry data.

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

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

Analyzes and models audio recordings of a ball bouncing on a hard surface.

A Live Script illustrating text-to-speech generation of custom iPhone Voice Control command sequences.

Analyzes cosmic muon data from a QuarkNet muon hodoscope to measure the lifetime of stopping muons.

Load more