Any time I try to run pepper I get the following message:
Error using erot
Too many output arguments.
Error in resfields_perturb (line 228)
Error in pepper (line 523)
Error in pepper (line 105)
Error in pepper_test (line 19)
pepper (Sys,Exp,Opt);
I get this message also when I try to run pepper's easyspin examples
Any idea why?
problem with pepper
-
- EasySpin Creator
- Posts: 1120
- Joined: Mon Jul 21, 2014 10:11 pm
- Location: University of Washington
Re: problem with pepper
Hi Raanan, strange. Which ES example specifically gives this problem? Also, can you type
which -all erot
and easyspin
in your Matlab command window and post the output?-
- Newbie
- Posts: 4
- Joined: Thu Feb 26, 2015 3:04 am
Re: problem with pepper
I tried all of them. I am using the recent version of ES, all older versions were deleted before installing the new one. I also tried it on Matlab 2010 and 2014 and I get the same result. Instead I'm simulating solid state spectra with chili with very long tcorr.
-
- EasySpin Creator
- Posts: 1120
- Joined: Mon Jul 21, 2014 10:11 pm
- Location: University of Washington
Re: problem with pepper
Hi Raanan, this is strange. Please post a short script that generats the error. Also, please post the outputs of
which -all erot
and easyspin
and which -all resfields_perturb
.-
- Newbie
- Posts: 4
- Joined: Thu Feb 26, 2015 3:04 am
Re: problem with pepper
This is the script (one of your examples in this case)Stefan Stoll wrote:Hi Raanan, this is strange. Please post a short script that generats the error. Also, please post the outputs ofwhich -all erot
andeasyspin
andwhich -all resfields_perturb
.
% Cu2+ with four imidazole nitrogens
%=============================================================
% Simulation of the EPR spectrum of a S=1/2 Cu2+ coordinated by
% four imidazoles, so that the couplings to four nitrogens are
% resolved.
% parameters take from S. K. Buchanan, G. C. Dismukes,
% Biochemistry 1987, 26(16), 5049-5055 (see Fig.1 and its legend)
clear
Sys.Nucs = 'Cu,14N,14N,14N,14N';
Sys.g = [2.05 2.19];
A_Cu = [0.0019 0.0203]; % in cm^-1
A_N = [0.00145 0.0017]; % in cm^-1
Sys.A = [A_Cu;A_N;A_N;A_N;A_N]*30e3; % cm^-1 -> MHz
Sys.Apa = [0 0 0; 0 1 0; 0 1 1; 0 1 2; 0 1 3]*pi/2;
Sys.lwpp = [0 0.65];
Exp.mwFreq = 9.05;
Exp.Range = [250 350];
Opt.Method = 'perturb';
Opt.nKnots = [61 0];
pepper(Sys,Exp,Opt);
and this is the output
??? Error using ==> erot
Too many output arguments.
Error in ==> D:\Raanan\Projects\matlab\easyspin-4.5.5\easyspin-4.5.5\easyspin\resfields_perturb.p>resfields_perturb at 228
Error in ==> D:\Raanan\Projects\matlab\easyspin-4.5.5\easyspin-4.5.5\easyspin\pepper.p>pepper at 520
Error in ==> D:\Raanan\Projects\matlab\easyspin-4.5.5\easyspin-4.5.5\easyspin\pepper.p>pepper at 105
Error in ==> copper_nitrogens at 25
pepper(Sys,Exp,Opt);
There is no other output. I get this when ever I use pepper whether it is on EsaySpin examples or when I try a new script.
Just to be clear, I don't have older versions of EasySpin so conflict of new program with an older one having the same name can be exclude.
-
- Newbie
- Posts: 4
- Joined: Thu Feb 26, 2015 3:04 am
Re: problem with pepper
Ok, I manage to resolve the issue. It turned out that I had a file with the name erot that caused MATLAB to confuse. Once I changed that file name everything worked well.
Thanks for the help
Best
Raanan
Thanks for the help
Best
Raanan
-
- EasySpin Creator
- Posts: 1120
- Joined: Mon Jul 21, 2014 10:11 pm
- Location: University of Washington
Re: problem with pepper
Good that is resolved.
Another function namd
Another function namd
erot
was my suspicion. Next time, just use which -all erot
to idenify this problem.