How to draw a generic cylinder with arbitrary orientation
6 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Mohammad Reza
il 4 Dic 2023
Modificato: Mohammad Reza
il 24 Dic 2023
Hi,
How to draw a generic cylinder, we have its radius, length, position of center of mass ( or bottom face center) and its orientation (using a unit vector, for example 0,0,1 for z-axis ). Any help would be appreciated.
Regards
Reza
Risposta accettata
Matt J
il 4 Dic 2023
Modificato: Matt J
il 4 Dic 2023
See this File Exchange download,
[cCenter,cRadius,cHeight,cYawPitch]=...
deal([0 0 0], 2, 10, [45 -30]); %Cylinder parameters
gtCyl=cylindricalFit.groundtruth([],cCenter,cRadius,cHeight,cYawPitch); %Data-less ground truth objects
plot(gtCyl)
1 Commento
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Vibration Analysis in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!