Any ideas on how to properly do this?
/*
double* the_c_function()
{
// bunch of stuff happens to populate values[]
double *values_ptr = mxGetPr(values[0]); //this is a Matlab c function
printf("an element value: %lf\n", values_ptr[3]);
return values_ptr;
}
*/
import "C"
func main () {
returned_double_array = C.the_c_function()
//how do I get/read the elements of returned_double_array ?
}