Search found 186 matches

by katarkon
Fri Jan 07, 2022 11:20 am
Forum: General forum
Topic: Spectrum of 1,4-dinitrotetramethylbenzene
Replies: 1
Views: 153885

Re: Spectrum of 1,4-dinitrotetramethylbenzene

You have to use additional simulation function exchange(). See file exchange topics viewtopic.php?f=8&t=309 and viewtopic.php?f=8&t=465
Good luck.

by katarkon
Wed Oct 27, 2021 6:57 pm
Forum: General forum
Topic: Fitting mwPhase for multicomponent spectrum?
Replies: 2
Views: 2043

Re: Fitting mwPhase for multicomponent spectrum?

You have to take in account that the parameter Sys in custom similation function is cell array in the case of multicomponent fitting. Try to use Exp.mwPhase = Sys{1}.mwPhase;

by katarkon
Tue Oct 26, 2021 10:33 am
Forum: General forum
Topic: Multifrequency fitting in multicomponent system
Replies: 8
Views: 2913

Re: Multifrequency fitting in multicomponent system

Try to rewrite your custom simulation function to accept three parameters (Sys,Exp,Opt) instead two ones (Sys,Exp). It should be compatible with esfit() function.

by katarkon
Tue Oct 26, 2021 1:45 am
Forum: General forum
Topic: Multifrequency fitting in multicomponent system
Replies: 8
Views: 2913

Re: Multifrequency fitting in multicomponent system

Please give all of the scripts here.

by katarkon
Mon Oct 25, 2021 2:42 am
Forum: General forum
Topic: Multifrequency fitting in multicomponent system
Replies: 8
Views: 2913

Re: Multifrequency fitting in multicomponent system

Are you write your custom simulation function?

by katarkon
Sun Oct 24, 2021 1:40 pm
Forum: General forum
Topic: Multifrequency fitting in multicomponent system
Replies: 8
Views: 2913

Re: Multifrequency fitting in multicomponent system

You may use Sys.lw field to define both X and Q band linewidths Sys.lw = [lwX lwX; lwQ lwQ] where [lwX lwX] are gaussian and lorentzian components for X band and [lwQ lwQ] for Q band. During simulation just parse lw field SysX=rmfield(Sys,'lw'); %X band SysQ=SysX; %Qband SysX.lw=Sys.lw(1,:); %extrac...
by katarkon
Wed May 26, 2021 11:49 pm
Forum: General forum
Topic: Loading multiple spectra simultaneously from a folder
Replies: 3
Views: 1573

Re: Loading multiple spectra simultaneously from a folder

Thanks for idea. I try slightly different code: path='foldername\'; list=dir(path); for i=1:numel(list) if list(i).isdir ==0 [x,y,par]=eprload([path list(i).name]); % % combine spectra here % end end You way looks more convenient if adopted for MS-5000 file naming. Unfortunately, the MS-5000 files i...
by katarkon
Wed May 26, 2021 10:45 pm
Forum: Bugs
Topic: Strange behaviour of esfit during fitting
Replies: 3
Views: 7035

Re: Strange behaviour of esfit during fitting

Sorry, Stefan, the first issue isn't a bug in esfit. Real reason is incorrect units for Exp.Temperature (C instead of K) for custom simulation function. Correction of the temperature units solves the problem. However, second issue is still actual. Example script basicfit.m with 'no scaling' throws a...
by katarkon
Wed May 26, 2021 6:01 am
Forum: Bugs
Topic: Strange behaviour of esfit during fitting
Replies: 3
Views: 7035

Strange behaviour of esfit during fitting

I have found that for some files experimental spectrum looks like scaled by negative factor. It is clearly visible on screenshot. esfit.png This behaviour is kept at any scaling mode, except 'no scaling' which throws an error Undefined function or variable "scalefactor". Error in C:\easysp...
by katarkon
Wed May 26, 2021 1:50 am
Forum: General forum
Topic: Loading multiple spectra simultaneously from a folder
Replies: 3
Views: 1573

Loading multiple spectra simultaneously from a folder

Magnettech MS-5000 spectrometer saves 2D experiments (like temperature series) as a set of the separate files in dedicated folder. For some simulations it is convenient to load all of the spectra simultaneously. I see EasySpin has no built-in possibilities for it, so additional wrapper around eprloa...