This app implements all of the CW EPR simulation functions, many of the relevant data processing functions, and esfit of easyspin. Additional features include:
"Quantify" tab for converting a double-integral value to a spin concentration
Narrow the fit region in esfit
Option to display the x axis as g values rather than field
Slider for adjusting frequency to account for inaccurate field controllers
Easily switch between fitting slices of 2D data sets individually, in parallel, or in series
Make sure to look through the manual before you get started. Please report any bugs, suggestions, or feature requests.
cwEPR.png (211.65 KiB) Viewed 26470 times
Last edited by ThomasMCasey on Sun May 14, 2023 7:13 am, edited 2 times in total.
It appears that this happens when trying to install an app created in matlab versions 2013+ using matlab 2012 or older due to a change in the 'evalin' function. The official response from the mathworks support team can be found here:
It looks like the advice is to just try again. If it still doesn't work let me know and I can find another way to share it with you or anyone running older versions.
The GUI looks great. Data processing and simulation works intuitively. Nice!
With fitting I have more problems.
Probably a stupid question, but how can I use this GUI for fitting? Do you have a bit more info in the manual?
Whatever I try with fitting, I always get this error message:
Error using esfit
First input parameter must be a valid function name or function handle.
Error in cwEPR/esfit (line 4168)
esfit('custom_fittwomethods',spc(:,app.currslice),Sys,Vary,Exp,Opt,FitOpt)
Error using matlab.ui.control.internal.controller.ComponentController/executeUserCallback (line 335)
Error while evaluating Button PrivateButtonPushedFcn.
(Using cwEPR version 2.6, Easyspin 5.2.28 and Matlab 9.7.0.1319299 (R2019b) Update 5)
Thank you, I'm glad it is helpful for you! And thank you for the feedback!
Do you have the folder "helper_functions" on your path? It should be in the .zip file that you downloaded. It looks like it can't find the function 'custom_fittwomethods' that is needed for the fitting. I may be able to find a way to put these "helper" functions into the app itself so it doesn't need to look elsewhere but at this point it needs these external functions.
If you do have them on your path and still get this or other errors, can you 'Save Parameters' under the Tools tab and attach the .mat file here?
Hello Friends!
Thank you for your work!
I want to use the app for my research, but when I try to run the app, the window is "chopped" and I cannot see the upper part (when the load file button should be). This could be solved by resizing the window to see all the info on the screen, but the app doesn't let to do that. I have the latest version of Mathlab (2019b update 6)
Thanks in advance
Correction
I got it guys
I resized my display to show all the elements smaller and now it's working