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.
Search found 186 matches
- 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
- Wed Oct 27, 2021 6:57 pm
- Forum: General forum
- Topic: Fitting mwPhase for multicomponent spectrum?
- Replies: 2
- Views: 2044
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;
- Tue Oct 26, 2021 10:33 am
- Forum: General forum
- Topic: Multifrequency fitting in multicomponent system
- Replies: 8
- Views: 2918
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.
- Tue Oct 26, 2021 1:45 am
- Forum: General forum
- Topic: Multifrequency fitting in multicomponent system
- Replies: 8
- Views: 2918
Re: Multifrequency fitting in multicomponent system
Please give all of the scripts here.
- Mon Oct 25, 2021 2:42 am
- Forum: General forum
- Topic: Multifrequency fitting in multicomponent system
- Replies: 8
- Views: 2918
Re: Multifrequency fitting in multicomponent system
Are you write your custom simulation function?
- Sun Oct 24, 2021 1:40 pm
- Forum: General forum
- Topic: Multifrequency fitting in multicomponent system
- Replies: 8
- Views: 2918
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...
- 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...
- Wed May 26, 2021 10:45 pm
- Forum: Bugs
- Topic: Strange behaviour of esfit during fitting
- Replies: 3
- Views: 7041
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...
- Wed May 26, 2021 6:01 am
- Forum: Bugs
- Topic: Strange behaviour of esfit during fitting
- Replies: 3
- Views: 7041
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...
- 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...