Search found 134 matches

by Matt Krzyaniak
Tue Dec 22, 2015 7:28 am
Forum: Bugs
Topic: Dimensions of return values from eprload and esfit
Replies: 2
Views: 3678

Re: Dimensions of return values from eprload and esfit

That is a minor bug that will get fixed in the next update. In general EasySpin should output row vectors. One easy work around is to either force everything into a column or ensure everything is a row by using (:) such as: [x,y] = eprload; % shift the data into column x=x(:); y=y(:); % or force a r...
by Matt Krzyaniak
Thu Nov 26, 2015 4:46 pm
Forum: General forum
Topic: Error estimation from fitting
Replies: 1
Views: 2011

Re: Error estimation from fitting

At the moment esfit does not provide the standard errors for the individual fits. However, we are working on implementing an error estimation.
by Matt Krzyaniak
Tue Nov 17, 2015 7:51 am
Forum: General forum
Topic: multifrequency esfit?
Replies: 8
Views: 10930

Re: multifrequency esfit?

That sounds like you might be trying to pass an options structure or you provided esfit with an empty structure for options, you can fix that by giving the multifreq function a third input, even if you don't actually use it.
by Matt Krzyaniak
Mon Nov 16, 2015 8:21 am
Forum: General forum
Topic: Error using pepper! Please help!
Replies: 2
Views: 2200

Re: Error using pepper! Please help!

This is a common problem for the beginning matlab/easyspin user. When running your script a second time you're adding to the structure Sys so both Sys.lw and Sys.lwpp are present. The remedy for this is to ensure you clear the variables before you run your script, its good practice to start your scr...
by Matt Krzyaniak
Fri Nov 13, 2015 8:14 am
Forum: Bugs
Topic: Exp.Harmonic not working with salt?
Replies: 1
Views: 3635

Re: Exp.Harmonic not working with salt?

What you're observing is a minor quirk with respect to the number of points, the frequency range and the line broadening. If your resolution, range/npoints, is less than your linewidth salt can't properly calculate the derivative spectrum. You have two options, provide and increase the number of poi...
by Matt Krzyaniak
Wed Nov 11, 2015 7:52 am
Forum: General forum
Topic: How to set Sys0.n for isotopes?
Replies: 2
Views: 2324

Re: How to set Sys0.n for isotopes?

garlic is not setup to take into account isotope mixtures of equivalent nuclei. And unless you're moderately isotope enriched, the probability of having multiple 13C on the same molecule is negligible. So what you'd ideally want to do is just assume a single 13C and scale up your abundance by the n...
by Matt Krzyaniak
Thu Nov 05, 2015 7:36 pm
Forum: General forum
Topic: g(iso) and A(iso) of fast motion simulation
Replies: 1
Views: 1701

Re: g(iso) and A(iso) of fast motion simulation

garlic simulates fast motion isotropic spectra, The assumption is that your sample is tumbling fast enough such that all of the anisotropic interactions average out. What this means is that if you know your full g tensor g = [g_x g_y g_z], in the fast motion regime what you observe is a spectrum ce...
by Matt Krzyaniak
Thu Oct 15, 2015 1:21 pm
Forum: General forum
Topic: multifrequency esfit?
Replies: 8
Views: 10930

Re: multifrequency esfit?

You can do that, without too much difficulty. First you create a new function such as function y = multifreq(Sys,Exp) % you could also hardcode some of this Exp.Range = [Exp.f(1) Exp.f(2)]; Exp.nPoints = Exp.n(1); Exp.mwFreq = Exp.mw(1); freq1 = pepper(Sys,Exp); Exp.Range = [Exp.f(3) Exp.f(4)]; Exp....
by Matt Krzyaniak
Mon Sep 14, 2015 7:27 am
Forum: General forum
Topic: Simulated Spectrum Output
Replies: 5
Views: 4985

Re: Simulated Spectrum Output

Oops that was a bunch of wrong stuff on my part, if you glance at the output from esfit you'll see that one of them is a structure the other is just a vector. I flipped around what the outputs actually are, the first output are the best fit parameters while the second is the best fit spectrum. I edi...
by Matt Krzyaniak
Sat Sep 12, 2015 5:23 pm
Forum: General forum
Topic: Simulated Spectrum Output
Replies: 5
Views: 4985

Re: Simulated Spectrum Output

From esfit you have two potential outputs. If you only have one output argument you'll get your fit paramters such as: fitparams = esfit('pepper', spc, Sys, Vary, Exp, SimOpt, FitOpt); [B,spc] = pepper(fitparams,Exp); data = [B(:) spc(:)]; save('simdata.txt','data','-ascii'); If you provide two outp...