- Have you tried changing the level of zoom? Perhaps you are too far away to see the line and can only see the markers (spheres)
- Is there a solid sphere with a very large radius hiding the spline?
Simscape Multibody Spline only one Point
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Tobias Panitz
le 6 Déc 2022
Commenté : Steve Miller
le 7 Déc 2022
Hello.
I want to plot a trajectory into the Mechanics Explorer using the Spline block.
I looked at the Steve Miller example (Four Bar Linkage Optimization in Simscape - File Exchange - MATLAB Central (mathworks.com)) and cannot figure out why it doesn't work.
I have a Matlab variable with the x and y cooordinates called anyOldSpline. Modifying End Conditions has no effect.
The result is one single marker at [0 0] which isn't even part of the spline array.
Can anyone help? Thanks in advance
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1220877/image.png)
0 commentaires
Réponse acceptée
Steve Miller
le 6 Déc 2022
From what I see, it should be just fine. Normally, your spline should be nx3, but I also tried entering nx2 and still saw it plot properly both in the block dialog box and in the Mechanics Explorer.
Things to try:
--Steve
4 commentaires
Steve Miller
le 7 Déc 2022
Great! I should have seen that in your dialog box setting above. Thanks for letting me know.
--Steve
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Bodies dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!