Search found 13 matches

by EricWalter
Tue Mar 07, 2023 8:59 pm
Forum: General forum
Topic: fitting two spectra with esfit
Replies: 4
Views: 4983

Re: fitting two spectra with esfit

Change the lw value in the function when you get to each, the same as you do the Exp values (you will have to Vary each separately):
Sys0.lw =Sys.lwX;
yX = pepper(Sys0, Exp, SimOpt);
Sys0.lw =Sys.lwQ;
yQ = pepper(Sys0, Exp, SimOpt);

by EricWalter
Mon Mar 06, 2023 12:21 pm
Forum: General forum
Topic: fitting two spectra with esfit
Replies: 4
Views: 4983

Re: fitting two spectra with esfit

What version of Matlab are you using? I had problems with functions defined inside a script with older versions (I just made the function a separate .m file). But beyond that, it looks like you will overwrite your x-band data with your Q-band, I think you need to cat them together. And I think you n...
by EricWalter
Thu Mar 02, 2023 5:50 pm
Forum: General forum
Topic: Nuc isotope ratio error
Replies: 2
Views: 4232

Nuc isotope ratio error

I'm try to simulate hyscore with Ba and Sn, and it keeps giving me an error when I try to give it isotopes, so I went to the "spin system" section of the documentation and cut out the example: Sys.Nucs = '63Cu,(32,33)S'; % 63Cu with enriched 33S Sys.Abund = {1,[0.1,0.9]]; % 100% 63Cu, 10% ...
by EricWalter
Mon Feb 20, 2023 12:10 pm
Forum: General forum
Topic: Chatgpt can write EasySpin scripts
Replies: 1
Views: 3496

Chatgpt can write EasySpin scripts

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 parame...
by EricWalter
Thu Dec 30, 2021 4:33 pm
Forum: General forum
Topic: Error when adding Sys.Q to HYSCORE simulation
Replies: 6
Views: 4450

Error when adding Sys.Q to HYSCORE simulation

I'm trying to simulate some HYSCORE spectra with barium as one of the nuclei. It is natural abundance, so I just put in 'Ba' as the Nuc. Worked great with just Sys.A, I saw a doubled pattern just like in the experiment from 135Ba and 137Ba (both I=3/2). When I tried to improve by adding quadrupole, ...
by EricWalter
Fri Dec 06, 2019 12:54 pm
Forum: General forum
Topic: Plotting HYSCORE data
Replies: 4
Views: 4604

Re: Plotting HYSCORE data

That is the name of the step size that is used by the canned program on a Bruker Elexsis, if you wrote your own program for HYSCORE in pulsespel you may have used a different name. Look through your .DSC file with a text editor, you may have to change several names. Or you can just put in a hard cod...
by EricWalter
Wed May 08, 2019 11:11 am
Forum: General forum
Topic: Fitting static NMR?
Replies: 2
Views: 2398

Fitting static NMR?

I am working on a paramagnetic fluoride and have collected a solid state static 19F NMR spectrum at 300 MHz, it is a nice axial powder lineshape several MHz wide. Is there any convenient way to fit this spectrum with esfit? I set up a fit as if it were a frequency swept X-band spectrum (I added 9 GH...
by EricWalter
Tue May 07, 2019 5:53 pm
Forum: General forum
Topic: HYSCORE Simulation!!
Replies: 3
Views: 3534

Re: HYSCORE Simulation!!

It seems like you want to fit the data, not just simulate. This is not possible with esfit. We recently published this article where we varied the various parameters in a grid and then did least square fitting. This meant simulating many, many HYSCORE spectra, check the supplementary info for detail...
by EricWalter
Mon Mar 04, 2019 6:25 pm
Forum: Bugs
Topic: Fitting not working in 5.2.24
Replies: 1
Views: 4151

Fitting not working in 5.2.24

I have not been able to fit spectra in 5.2.24 even with the provided examples or my own old scripts that had previously worked. The fit window and plot of the experimental data seem normal, but the simulated spectrum has zero amplitude. When I change from fit to simulation using the starting paramet...
by EricWalter
Thu May 12, 2016 5:35 pm
Forum: General forum
Topic: Plotting HYSCORE data
Replies: 4
Views: 4604

Re: Plotting HYSCORE data

I use the code below, it assumes the data was taken on a Bruker. It applies a Hamming window and zero fills to 2048. I plot all the steps in the processing, if you find this annoying, just comment out all but the last plot. It uses a couple Easyspin functions, so you need to have Easyspin in your pa...