title: How to pass multiple output from function into cell array
body: <p>I have a function with the following prototype</p>
  
  <pre><code>function [bandwidth,density,X,Y,x,y]=kde2d(data,n,MIN_XY,MAX_XY)
  </code></pre>
  
  <p>basically the function returns 6 outputs as above, some are in vector form while others are a numerical quantity. How can I elegantly pass the output from the function into a 1 by 6 cell array?</p>