EasySpin (6.0.0-dev.19) does not recognize rotatecrystal function?
Posted: Thu Jan 16, 2020 7:39 am
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
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