I am migrating the code from matlab to c++
I have a auto generated c++ code from matlab here
myfun(coder::array<double, 1U>& x)
//body here which is auto generated
Now I want to integrate this code with software
But I have the respective input values in std::vector my_vec
question is how should I convert the vector into coder::array so that I can call myfun
Note: The vector is dynamic in size.