Page 1 of 1
Undefined function or vaariable 'pepper'
Posted: Mon Jan 06, 2020 10:45 pm
by bs.srikanth16
i am using MATLAB 2015a and Easyspin 5.2.27. While running one of the example I am gettig the error,
" Undefined function or variable 'pepper'.
Error in mn_strain (line 22)
[B,spec0] = pepper(Sys,Exp); "
please help me to solve this problem.
Re: Undefined function or vaariable 'pepper'
Posted: Thu Jan 09, 2020 10:53 am
by Stefan Stoll
Make sure to add the easyspin-x.y.z/easyspin folder to your Matlab path, as described in the installation instructions.
Re: Undefined function or vaariable 'pepper'
Posted: Thu Oct 29, 2020 5:55 am
by anubis_by_itself
I thought in order to use pepper you have to use @pepper? Or it is different kind of using?
Re: Undefined function or vaariable 'pepper'
Posted: Thu Oct 29, 2020 8:59 am
by Stefan Stoll
The original error message indicates that MATLAB can't find pepper
. This means that the easyspin-x.y.z/easyspin folder is not on the MATLAB search path. You have to add for EasySpin to work.
To do a simulation, just use pepper
as shown in the OP. For least-squares fitting, use esfit
like this: esfit(@pepper,data,...)
.