I tried loadlibrary('qn.m') and MATLAB 2017b throws error.
Undefined function or variable 'qn_proto'.
Caused by:
Error using feval
Undefined function or variable 'qn_proto'
I also tried simply running a = qn(x) where x is a vector and it shows
Output argument "result" (and maybe others) not assigned during call to "qn".