q function

A function for computation of q-function for scalar and vector inputs
543 Descargas
Actualizado 17 sep 2010

Ver licencia

If you have any problem with finding q-function in your Matlab version, just add this function to your library to be able to handle q-function in your programing. It's a simple m-code file accepting both scalar and vector as input.

How to use it
usage is very easy and straight forward. Just download the file and save it to the same folder as your file is. Then by calling function q(x), where x is the integral limit, you can get the value of q function.

Example 1
>> q(.1)

ans =

0.4602

Example 2
>> q(5.3)

ans =

5.7901e-008

Example 3
>> vec=[1 -2 0.001 5.3 -1.04];
>> qfunc(vec)

ans =

0.1587 0.9772 0.4996 5.790e-008 0.8508

Citar como

Hassan Moradi (2025). q function (https://www.mathworks.com/matlabcentral/fileexchange/28620-q-function), MATLAB Central File Exchange. Recuperado .

Compatibilidad con la versión de MATLAB
Se creó con R2009b
Compatible con cualquier versión
Compatibilidad con las plataformas
Windows macOS Linux
Categorías
Más información sobre Third-Party Cluster Configuration en Help Center y MATLAB Answers.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Versión Publicado Notas de la versión
1.3.0.0

Putting some comments and examples.

1.1.0.0

Description changed.

1.0.0.0