Search found 134 matches

by Matt Krzyaniak
Fri Jul 22, 2016 6:51 am
Forum: General forum
Topic: Two spin systems in a custom function
Replies: 9
Views: 6531

Re: Two spin systems in a custom function

First to clarify how esfit works, if you provide it a multi-structure cell input, sort of like how you're trying to set it up now, esfit will loop over the individual components and pass them to the function so in terms of code it looks something like: fit = 0; for i=1:length(sys) [~,y] = custom(sys...
by Matt Krzyaniak
Thu Jul 21, 2016 10:12 am
Forum: General forum
Topic: Two spin systems in a custom function
Replies: 9
Views: 6531

Re: Two spin systems in a custom function

Your approach should be valid, esfit loops over the number of elements in the sys cell you provide and passes them each to the function, so likely what you need is an if/else statement in your custom function. for instance function [x,y]=custom(sys,exp,opt) if length(sys.S)==1 [x,y]=pepper(sys,exp,o...
by Matt Krzyaniak
Thu Jun 16, 2016 6:24 am
Forum: General forum
Topic: Separate output for garlic() function
Replies: 5
Views: 3236

Re: Separate output for garlic() function

Yes, you can use pepper to simulate isotropic spectra, just be warned, depending on how large your spin system is it can be considerably slower than garlic. You could regain some of the speed by switching Opt.Method to 'perturb', 'perturb1', or 'perturb2' though you'll still want to verify your fit ...
by Matt Krzyaniak
Wed May 18, 2016 7:01 am
Forum: General forum
Topic: Area under EPR transitions.
Replies: 5
Views: 4532

Re: Area under EPR transitions.

This depends on the extent of the background correction needed, if the background isn't particularly bad you could use the ES function basecorr or if the background if pretty bad you could define a set of logical indices and remove a line based on that. So for you complete problem something such as:...
by Matt Krzyaniak
Tue May 17, 2016 6:38 am
Forum: General forum
Topic: Area under EPR transitions.
Replies: 5
Views: 4532

Re: Area under EPR transitions.

Just to add to the above, within matlab you can achieve a basic integral through the use of cumsum that is assuming your increment size is fixed across the range you're integrating. Then you can follow this by a sum to provide a number to compare for your double integral.
by Matt Krzyaniak
Mon Apr 11, 2016 10:13 am
Forum: General forum
Topic: Fitting S = 1 System
Replies: 2
Views: 1846

Re: Fitting S = 1 System

I'm not familiar with the system you're looking at but at least for me the g-values you're using don't make sense.
A little more information about your system is necessary for any substantial suggestions, The field and frequency that the experiment was collected at, what do you think it might be?
by Matt Krzyaniak
Mon Feb 29, 2016 10:49 am
Forum: General forum
Topic: EPR simulation with two spins (radical pair)
Replies: 3
Views: 3297

Re: EPR simulation with two spins (radical pair)

Ok you're working under experimental conditions where I'm having a hard time thinking about the best way to simulate the spectrum. I mostly deal with transiently generated radical-pairs that start in a spin polarized state. We direct detect in quadrature without field modulation and obtain an absorp...
by Matt Krzyaniak
Thu Feb 25, 2016 7:57 am
Forum: General forum
Topic: EPR simulation with two spins (radical pair)
Replies: 3
Views: 3297

Re: EPR simulation with two spins (radical pair)

I'll do my best to help, though I'll need a bit more information. You've got a radical pair, I assume it's either photo-induced or chemically generated. In which case do you expect it to have J coupling? What about spin polarization? In both of these cases garlic isn't quite the program to be using ...
by Matt Krzyaniak
Fri Feb 19, 2016 11:24 am
Forum: General forum
Topic: separation of different signals coming from orientations
Replies: 2
Views: 2374

Re: separation of different signals coming from orientations

With respect to your second question, that appears to be a slight bug, or at least a check that we should be perform and notify you better. You specified the nucleus 'Cr' which does not have a single abundant isotope, but rather has two, I=0(~90.5%) and I=3/2(~9.5%). The error that you're seeing is ...
by Matt Krzyaniak
Fri Feb 05, 2016 8:42 am
Forum: General forum
Topic: Harmonics
Replies: 5
Views: 3019

Re: Harmonics

Do you have appreciable line-width on your simulation? If your linewidth is less than than FieldRange/nPoints pepper can't appropriately calculate the harmonics so it defaults to the absorption spectrum.