When exporting a model made with the 3d mechanics editor to matlab, the following problem shows up.

The model fails to run because a function "xxinvhomogeneous" is missing. Upon inspection, there is indeed no such function anywhere in my code, but there is a function "xxinversehomogeneous". Am I right in assuming that the latter is the one which is needed?

As far as I can tell, the code runs fine when changing xxinvhomogeneous into xxinversehomogeneous, but I might be wrong; I'm still having some problems using my model in Matlab.

## Exporting code to matlab

**Moderators:** Frank, paul, Hiwot, Chris, peter

### Re: Exporting code to matlab

Thanks for the bug report! That is indeed the function that you need to use.jvkersch wrote:When exporting a model made with the 3d mechanics editor to matlab, the following problem shows up.

The model fails to run because a function "xxinvhomogeneous" is missing. Upon inspection, there is indeed no such function anywhere in my code, but there is a function "xxinversehomogeneous". Am I right in assuming that the latter is the one which is needed?

As far as I can tell, the code runs fine when changing xxinvhomogeneous into xxinversehomogeneous, but I might be wrong; I'm still having some problems using my model in Matlab.

What integration method do you use in 20-sim and in Matlab?

member 20-sim development team

### Re: Exporting code to matlab

If I'm not mistaken, it's BDF. To get some hands-on experience, I just wanted to simulate a falling body so I took a standard body and a sensor for the z-coordinate; I didn't change any of the standard experiment parameters.paul wrote: What integration method do you use in 20-sim and in Matlab?