1.0

1.0 | 2 ratings Rate this file 1 Download (last 30 days) File Size: 1012 Bytes File ID: #26575

Q function

by Micu

 

03 Feb 2010

Computes the value of the Q function

| Watch this File

File Information
Description

Because of the "erfc" function, the processing time is very small.

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 (2)
03 Feb 2010 John D'Errico

Oh, I just had to open this up to see what was inside. This is all I found. No help at all. No H1 line. No error checking. Just one short piece of code that does something trivial. Here it is. I'll save you all the waste of time to download it.

function Q=Q_Function(x)
Q=erfc(x/sqrt(2))/2;

When you write software to give away to others, there must be some reason to do so. Is your function especially useful? Does it do something that others will not be able to do? Does it make their lives in MATLAB easier for some reason?

A good submission should do one of two things. It should teach others something of value, or it should provide utility that was lacking previously in MATLAB. This submission does nothing to further either goal.

There is no hint here of what the function does. The Q function? Yeah, right. There are lots of things in mathematics/statistics that have the letter Q associated with them.

As far as teaching goes, all this teaches other people is how NOT to write software for public consumption.

03 Feb 2010 Jos (10584)

I fully concur with John here. Moreover, this code is nothing more than the significance value associated with a z-score. Suddenly, FEX#26541 rises in value ;-)

http://www.mathworks.com/matlabcentral/fileexchange/26541

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
image processing Micu 03 Feb 2010 10:24:20
mathematics Micu 03 Feb 2010 10:24:20
measurement Micu 03 Feb 2010 10:24:20
optimization Micu 03 Feb 2010 10:24:20
signal processing Micu 03 Feb 2010 10:24:20
statistics Micu 03 Feb 2010 10:24:20

Contact us at files@mathworks.com