title: Convert vector<> to emxArray_real_T in C++ after code-generation from MATLAB
body: <p>I have converted some matlab code to C++ using the MATLAB coder.</p>
  
  <p>I am aware that there are some questions similar to this one, but none of the explanations I found did help with my problem, which is somewhat different.</p>
  
  <p>The generated code for C++ gives me the following function:</p>
  
  <pre><code>void getTargetPoint(const emxArray_real_T *eyeMatrix, const emxArray_real_T
                  *HypAlpha, const emxArray_real_T *HypCov, const
                  emxArray_real_T *HypMean, const double xs[4], double Ymu[3])
  </code></pre>
  
  <p>Where Ymu is the output I am looking for. However, even if I defined my inputs as arrays of undetermined size in the converter, they are vectors of vectors in my code:</p>
  
  <pre><code>eyeMatrix = vector&lt;vector &lt;double&gt;&gt;  
  </code></pre>
  
  <p>They all have different dimensions, for instance, eyeMatrix = [968x4], but in any other case it could be [anything x 4]</p>
  
  <p>I have tried many things, but I cannot manage to convert my input data (vector of vectors) into type: emxArray_real_T</p>
  
  <p>Is there anyway to do this? Or should I convert my input data into something else and then into emxArray_real_T? </p>
  
  <p>Any help or idea is greatly appreciated!</p>