As I wrote before, for an octave version of houghpeaks, please use the code in .
If you have problems with that code, you can report there.
In your (mathworks copyrighted) version of houghpeaks the calling is
houghpeaks(h, numpeaks, threshold, nhood)
so if you use:
Then threshold gets the value ''threshhold' and nhood gets the value
Calling to your function