Curry / fitting magnetic data

General forum for EasySpin: questions, how to's, etc.
Post Reply
radovanh
User
Posts: 11
Joined: Thu Jan 19, 2017 8:04 am

Curry / fitting magnetic data

Post by radovanh »

Hello

I am using Easyspin 5.2.35.

I would like to fit temperature and field-dependent data with CURRY. However, my field-dependent data are not measured at the same fields for given temperatures.
To better explain, I do NOT have the data set as it is expected
T(K) Magnetization B(mT)
2 value 1000
2 value 3000
2 value 5000
5 value 1000
5 value 3000
5 value 5000
(Exp.mTemperature would be 1x2 array, Exp.mField would be 1x3 array, and MvsBData would be 3x2 array)

but data are e.g.
T(K) Magnetization B(mT)
2 value 1000
2 value 2500
2 value 5500
5 value 8000
5 value 3000
5 value 5000
5 value 7000

Thus, I tried to import dataset as individual measurements which ended as
(Exp.mTemperature 1x7 array, Exp.mField would be 1x7 array, and MvsBData would be 7x1 array)
However, during fitting there is an error "... Matrix dimensions must agree."

I guess that reason is the EasySpin is making a matrix MvsBSim with array dimension 7x7 for which there are not enough data from the experiment...

Please, is there any workaround?

R.

Stefan Stoll
EasySpin Creator
Posts: 1050
Joined: Mon Jul 21, 2014 10:11 pm
Location: University of Washington

Re: Curry / fitting magnetic data

Post by Stefan Stoll »

You can write a custom simulation function that calls curry several times, once for each temperature with the associated field values, and then return all the calculated values as a vector.

Post Reply