EPFLSTILOBMarcel LeuteneggerAbout

MATLAB toolbox

Error function of complex numbers

MATLAB toolbox

Data types

Double class
Extended class
Single class


Flex99-12C correlator
Flex02-0xD correlator
Vector functions


C-MEX wrapper
FPU instructions


Error function
Hankel transform


This package provides improved implementations of the error function for MATLAB. It ships a MEX-file for calculating the error function of real-valued numbers 5-6x faster than with the default MATLAB implementation. A second MEX-file and/or a companion M-file enhances the calculation of the error function for complex numbers. See erfz.pdf for implementation details.



Unpack the archive in a folder that is part of the MATLAB path. The error functions should reside in a @double folder to avoid potential data type conflicts.


Copyright © Marcel Leutenegger, 2003-2008, École Polytechnique Fédérale de Lausanne (EPFL),
Laboratoire d'Optique Biomédicale (LOB), BM - Station 17, 1015 Lausanne, Switzerland.

    This library is free software; you can redistribute it and/or modify it under
    the terms of the GNU Lesser General Public License as published by the Free
    Software Foundation; version 2.1 of the License.

    This library is distributed in the hope that it will be useful, but WITHOUT ANY
    WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
    PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

    You should have received a copy of the GNU Lesser General Public License along
    with this library; if not, write to the Free Software Foundation, Inc.,
    51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.

See '/FILES' in the source archive for a list of the original package contents.


Any warranty is strictly refused. Don't rely on any financial or technical support in case of malfunction or damage; see the copyright notice.

Comments are welcome. I will try to track reported problems and fix bugs.


January 14, 2008

Initial release.

February 19, 2009

Source code released under GNU Lesser General Public License (LGPL) version 2.1.


Downloading these files, you accept the copyright terms.


MATLAB is a registered trademark of The MathWorks, Inc. Pentium is a registered trademark of Intel Corporation. Other product or brand names are trademarks or registered trademarks of their respective holders.

© 2011 École Polytechnique Fédérale de Lausanne