Page 1 of 1

EasySpin (6.0.0-dev.19) does not recognize rotatecrystal function?

Posted: Thu Jan 16, 2020 7:39 am
by ivan_sudakov
I am trying to run the code from the rotatecrystal documentation:

clear
Sys.g = [2.0 2.1 2.2];
Sys.lwpp = 1;
Exp.mwFreq = 9.5;
Exp.Range = [300 400];
xL = [1;0;0]; % lab x axis
rho = 20*pi/180; % rotation angle
cori0 = [40 65 0]*pi/180; % initial crystal orientation
cori = rotatecrystal(cori0,xL,rho);
Exp.CrystalOrientation = cori;
pepper(Sys,Exp);

And I get an error: Undefined function or variable 'rotatecrystal'. Matlab version R2019a

Re: EasySpin (6.0.0-dev.19) does not recognize rotatecrystal function?

Posted: Thu Jan 16, 2020 1:36 pm
by Stefan Stoll
Correct, this function is removed in 6.0. It is replaced with `Exp.SampleRotation`, and it is documented.

Re: EasySpin (6.0.0-dev.19) does not recognize rotatecrystal function?

Posted: Sat Feb 08, 2020 10:29 am
by usiansumo
I have the same problem. I did not find documentation of Exp.SampleRotation.

Re: EasySpin (6.0.0-dev.19) does not recognize rotatecrystal function?

Posted: Mon Feb 10, 2020 10:43 am
by Stefan Stoll
The documentation of the development version is not available online, but you can find it in the documention subfolder of your EasySpin installation.