imaqhwinfo is part of image acquisition toolbox.. I'm guessing you do not have the toolbox..
try
which imaqhwinfo
It will show you if the function exists (if it does what is its path) (Your error suggest it cannot find the function)
try the ver command and see if Image Acquisition Toolbox is part of your license
ver