title: Can a MATLAB Mex function accept both single and doubles?
body: <p>I have a mex function that accepts double matrices as the input, but I just realized that the code this function is used for, can have single precision matrices as well. Is it possible to allow the function to accept either?</p>
  
  <p>Or if not, what is an alternative way to fix this issue?</p>