Error using Opt.Output pepper
Posted: Thu Jul 28, 2016 11:54 am
Hello
I'm trying to generate a plot containig a absorption spectrum of vanadium with the contribution of the transitions separately. So I wrote the following code:
However, I recieve this message error from MatLab:
Matrix dimensions must agree.
Error in pepper
Error in Vanadio (line 8)
[b,s2] = pepper(Sys,Exp,Opt);
How do I achieve my goal?
Thanks
I'm trying to generate a plot containig a absorption spectrum of vanadium with the contribution of the transitions separately. So I wrote the following code:
Code: Select all
Exp = struct('mwFreq',9.5,'Range',[200 500],'Harmonic',0);
Sys = struct('Nucs','V','g',[1.98 1.92],'A',[200 500],'lwpp',[0 2]);
Opt = struct('Output','separate');
[b,s1] = pepper(Sys,Exp);
[b,s2] = pepper(Sys,Exp,Opt);
plot(b,s1,b,s2)
Matrix dimensions must agree.
Error in pepper
Error in Vanadio (line 8)
[b,s2] = pepper(Sys,Exp,Opt);
How do I achieve my goal?
Thanks