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 ;-)
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.
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
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.