title: How to return a float value from a mex function, and how to retrieve it from m-file?
body: <p>I understand that all the returned values of a mex function are stored in plhs array of type mxArray*. I want to return a value of type float. How can I do it?</p>
  
  <p>Some code examples on returning it from the mex function and retrieving it from the m-file is much appreciated.</p>