Error using Opt.Output pepper

General forum for EasySpin: questions, how to's, etc.
Post Reply
IgorDAS
Newbie
Posts: 4
Joined: Thu Jul 28, 2016 11:30 am

Error using Opt.Output pepper

Post 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
Matt Krzyaniak
EasySpin Guru
Posts: 153
Joined: Tue Jul 22, 2014 11:01 am
Location: Northwestern University

Re: Error using Opt.Output pepper

Post 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.
IgorDAS
Newbie
Posts: 4
Joined: Thu Jul 28, 2016 11:30 am

Re: Error using Opt.Output pepper

Post by IgorDAS »

Thanks Matt, it works now.
Post Reply