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

A place to report and discuss potential bugs
Post Reply
ivan_sudakov
Newbie
Posts: 1
Joined: Mon Jan 09, 2017 3:37 am

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

Post 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
Stefan Stoll
EasySpin Creator
Posts: 1050
Joined: Mon Jul 21, 2014 10:11 pm
Location: University of Washington

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

Post by Stefan Stoll »

Correct, this function is removed in 6.0. It is replaced with `Exp.SampleRotation`, and it is documented.
usiansumo
Newbie
Posts: 4
Joined: Mon Dec 30, 2019 7:08 pm

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

Post by usiansumo »

I have the same problem. I did not find documentation of Exp.SampleRotation.
Stefan Stoll
EasySpin Creator
Posts: 1050
Joined: Mon Jul 21, 2014 10:11 pm
Location: University of Washington

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

Post 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.
Post Reply