Code covered by the BSD License  

Highlights from
q function

1.0

1.0 | 1 rating Rate this file 1 Download (last 30 days) File Size: 1 KB File ID: #28620

q function

by Hassan Moradi

 

02 Sep 2010 (Updated 17 Sep 2010)

A function for computation of q-function for scalar and vector inputs

| Watch this File

File Information
Description

    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

MATLAB release MATLAB 7.9 (2009b)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (1)
03 Sep 2010 Jos (10584)

Without any help (H1 line, syntax, example, etc..) this submission is next to useless.

Please login to add a comment or rating.
Updates
02 Sep 2010

Description changed.

17 Sep 2010

Putting some comments and examples.

Tag Activity for this File
Tag Applied By Date/Time
qfunction Hassan Moradi 02 Sep 2010 10:29:06
q function Hassan Moradi 02 Sep 2010 10:29:06
one dimensional q function Hassan Moradi 02 Sep 2010 12:24:52

Contact us at files@mathworks.com