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
EasySpin (6.0.0-dev.19) does not recognize rotatecrystal function?
-
- Newbie
- Posts: 1
- Joined: Mon Jan 09, 2017 3:37 am
-
- EasySpin Creator
- Posts: 1120
- Joined: Mon Jul 21, 2014 10:11 pm
- Location: University of Washington
Re: EasySpin (6.0.0-dev.19) does not recognize rotatecrystal function?
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?
I have the same problem. I did not find documentation of Exp.SampleRotation.
-
- EasySpin Creator
- Posts: 1120
- Joined: Mon Jul 21, 2014 10:11 pm
- Location: University of Washington
Re: EasySpin (6.0.0-dev.19) does not recognize rotatecrystal function?
The documentation of the development version is not available online, but you can find it in the
documention
subfolder of your EasySpin installation.