Page 1 of 1

Error using Opt.Output pepper

Posted: Thu Jul 28, 2016 11:54 am
by IgorDAS
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:

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)
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

Re: Error using Opt.Output pepper

Posted: Thu Jul 28, 2016 3:30 pm
by Matt Krzyaniak
Change your natural abundance V to 51V.
There is a minor bug with respect to using isotope mixtures and options.Output = 'separate' the work around is to specify a single isotope.

Re: Error using Opt.Output pepper

Posted: Fri Jul 29, 2016 5:56 am
by IgorDAS
Thanks Matt, it works now.