code 1:
clear, clf; clc;
Exp.mwFreq = 9.8;
Exp.Range = [200 500];
Exp.nPoints = 1e5;
Opt.Verbosity = 2;
Opt.nKnots = 30;
Sys.S = 5/2;
Sys.g = [2 2.003];
Sys.Nucs = 'Mn';
Sys.A = 550;
Sys.B20 = -29;
Sys.B21 = -232;
Sys.B22 = -191;
Sys.B40 = 1.56;
Sys.B41= -6.3;
Sys.B42 = 9.7 ;
Sys.B43 = -40;
Sys.B44 = 10.3;
Sys.lw = [0.3 0.2];
[b,spc,trans] = pepper(Sys,Exp,Opt);
plot(b,spc,'linewidth',1.5);
set(gca,'LineWidth',1,'FontSize',15);
xlabel('Magnetic field (mT)');
grid on;
axis tight;
%.................................................................
code 2:
clear, clf; clc;
Exp.mwFreq = 9.8;
Exp.Range = [200 500];
Exp.nPoints = 1e5;
Opt.Verbosity = 2;
Opt.nKnots = 30;
Sys.S = 5/2;
Sys.g = [2 2.003];
Sys.Nucs = 'Mn';
Sys.A = 550;
Sys.B2 = [-191 -232 -29 0 0];
Sys.B4 = [10.3 -40 9.7 -6.3 1.56 0 0 0 0];
Sys.lw = [0.3 0.2];
[b,spc,trans] = pepper(Sys,Exp,Opt);
plot(b,spc,'linewidth',1.5);
set(gca,'LineWidth',1,'FontSize',15);
xlabel('Magnetic field (mT)');
grid on;
axis tight;