Simscape Multibody - How to model a link with holes
1 view (last 30 days)
Show older comments
Marco Di Muro
on 9 Dec 2020
Commented: Marco Di Muro
on 14 Jan 2021
I have just written this easy code on MATLAB that provides the figure of a link with two holes. How can I export this function in Simscape Multibody in order to work with same exact 3D model? There must be something missing in the code for sure; I failed different attempts trying to recall the function in the info box of a general the extruded solid. Thanks in advance for your help.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/455759/image.png)
0 Comments
Accepted Answer
Juan Sagarduy
on 22 Dec 2020
Hello Marco
You run the function prior to the simulation to obtain the 2D profile of the solid with hole. Then u get something like:
contour = [xA yA; xB yB; ....; xF yF] where you go from A to F in counter-clockwise fashion.
The vector contour is what you then introduce in the extruded solid dialog to create the body with required shape.
Best of Luck Juan
More Answers (0)
See Also
Categories
Find more on Bodies in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!