Chatgpt can write EasySpin scripts

General forum for EasySpin: questions, how to's, etc.
Post Reply
EricWalter
User
Posts: 13
Joined: Mon Dec 28, 2015 3:49 pm

Chatgpt can write EasySpin scripts

Post by EricWalter »

I asked Chatgpt to write a EasySpin script to simulate a nitroxide, and it spit out something that runs anyway (copy of an example?):

% Define spin system parameters
Sys.g = [2.008, 2.006, 2.003];
Sys.Nucs = '14N';
Sys.A = [10, 10, 85];
Sys.lw = 1; % Line width, in Gauss

% Define experimental parameters
Exp.mwFreq = 9.5; % Microwave frequency, in GHz
Exp.Range = [300, 400]; % Range of magnetic fields to simulate, in mT
Exp.Harmonic = 0; % Harmonic number (0 for axial, 1 for rhombic)

% Simulate and plot the spectrum
[B,spc] = pepper(Sys,Exp);
plot(B,spc);
xlabel('Magnetic field (mT)');
ylabel('Intensity (arb. units)');

Stefan Stoll
EasySpin Creator
Posts: 1050
Joined: Mon Jul 21, 2014 10:11 pm
Location: University of Washington

Re: Chatgpt can write EasySpin scripts

Post by Stefan Stoll »

Probably. It doesn't look like Chatgpt did anything beyond a web search here.

Post Reply