Search found 245 matches

by thanasis
Wed Feb 17, 2016 2:02 am
Forum: General forum
Topic: Tie several variables to a common value
Replies: 10
Views: 8326

Re: Tie several variables to a common value

Indeed, I had looked into that to simulate the full system. However, to lighten up the CPU/memory load, I have been trying to fit only the S = 1/2 ground state, which I coupled to the three nuclear spins. (I suppose my code is valid for that approach?) As a second step, I will be looking into fittin...
by thanasis
Wed Feb 17, 2016 1:57 am
Forum: General forum
Topic: Fitting of magnetic susceptibility data
Replies: 31
Views: 18206

Re: Fitting of magnetic susceptibility data

And it works!

Thanks a lot, I'll be tuned in for the bug fix.
by thanasis
Wed Feb 10, 2016 5:34 am
Forum: General forum
Topic: Fitting of magnetic susceptibility data
Replies: 31
Views: 18206

Re: Fitting of magnetic susceptibility data

Thank you for the reply and sorry for the delay in responding. I must have misunderstood the way matrices are built, as I built the g tensor matrix in analogy to the hyperfine tensor matrix I posted at http://easyspin.org/forum/viewtopic.php?f=3&t=260. So, in my current script I understood that ...
by thanasis
Fri Feb 05, 2016 12:08 am
Forum: General forum
Topic: Fitting of magnetic susceptibility data
Replies: 31
Views: 18206

Re: Fitting of magnetic susceptibility data

Thanks for pointing this out! A copy-paste error crept through. Now I corrected my data and my code is: clear all; close all; cm=2.99793e4; % Conversion constant from cm-1 to MHz (~ 100*clight/1e6) path = '/home/thanasis/magnet/Natassa/Fe3O/Ph_py_NG471/'; cd(path); [T,chi] = textread('data_easyspin....
by thanasis
Thu Feb 04, 2016 11:33 am
Forum: General forum
Topic: Fitting of magnetic susceptibility data
Replies: 31
Views: 18206

Re: Fitting of magnetic susceptibility data

Thanks for this info! My script is the following: clear all; close all; cm=2.99793e4; % Conversion constant from cm-1 to MHz (~ 100*clight/1e6) path = '/home/path/to/file/'; cd(path); [T,chi] = textread('data_easyspin.dat','%f %f'); format long; % added as per your suggestion J = -22; gxy = 2; gz = ...
by thanasis
Tue Feb 02, 2016 6:55 am
Forum: General forum
Topic: Tie several variables to a common value
Replies: 10
Views: 8326

Re: Tie several variables to a common value

OK, probably I found my error, but please do confirm:

In my fitting code I changed to:

Code: Select all

 Sys1.A=[0 ACuz];
...and...

Code: Select all

Vary1.A = [0 50];
and then the three hyperfines are fitted as one.
by thanasis
Tue Feb 02, 2016 6:45 am
Forum: General forum
Topic: Tie several variables to a common value
Replies: 10
Views: 8326

Re: Tie several variables to a common value

OK, as per http://easyspin.org/easyspin/documentation/userguide_fitting.html#customfunction, I have defined the function constrain.m as follows: function y = constrain(Sys1,Exp,Opt); fullSys = Sys1; fullSys.A = [Sys1.A; Sys1.A; Sys1.A]; fullSys.Nucs = 'Cu,Cu,Cu'; [x,y] = pepper(fullSys,Exp,Opt); ret...
by thanasis
Tue Feb 02, 2016 2:31 am
Forum: General forum
Topic: Tie several variables to a common value
Replies: 10
Views: 8326

Re: Tie several variables to a common value

Thanks for the pointers!

I will look into them.
by thanasis
Tue Feb 02, 2016 2:08 am
Forum: General forum
Topic: Fitting of magnetic susceptibility data
Replies: 31
Views: 18206

Re: Fitting of magnetic susceptibility data

Please find attached the data file.
First column T (in K), second column chi (in emu).

All T and chi values are consistently rounded to 4 decimals.

EDIT 1: txt, dat and csv extensions are not allowed in attachments, so I will try to PM it to you
EDIT 2: Data PM'd as straight text
by thanasis
Mon Feb 01, 2016 5:12 pm
Forum: General forum
Topic: Fitting of magnetic susceptibility data
Replies: 31
Views: 18206

Fitting of magnetic susceptibility data

I have searched Easyspin's documentation and examples, but I haven't seen any implementations of fitting SQUID data with easyspin (only simulations). So, I have a few questions: 1. using the textread function as described in http://easyspin.org/easyspin/documentation/importexport.html, the '%g %g' a...