Ahora está siguiendo esta publicación
- Verá actualizaciones en las notificaciones de contenido en seguimiento.
- Podrá recibir correos electrónicos, en función de las preferencias de comunicación que haya establecido.
This script draws spherocylinder/capsule of any aspect ratio for a given centre coordinate and orientation. The input parameters are:
pos - Centre of the spherocylinder
vec - Orientation vector
totalLength - Total length of the spherocylinder including the hemispherical ends.
AR - Aspect ratio of the spherocylinder. AR=1 implies a sphere.
Since the code is developed for a multi-spherocylinder system, lighting effects are not included in the code. Include the following commands for the lighting (or after the "end" of the "for loop" for a multiparticle system):
set(gca,'CameraPosition',[1 1 1]);
box on;
daspect([1,1,1]);
camlight('left');
Citar como
Sathish Sanjeevi (2026). spherocylinder (https://la.mathworks.com/matlabcentral/fileexchange/66904-spherocylinder), MATLAB Central File Exchange. Recuperado .
Categorías
Más información sobre Lighting, Transparency, and Shading en Help Center y MATLAB Answers.
Información general
- Versión 1.0.0.0 (1,84 KB)
Compatibilidad con la versión de MATLAB
- Compatible con cualquier versión
Compatibilidad con las plataformas
- Windows
- macOS
- Linux
| Versión | Publicado | Notas de la versión | Action |
|---|---|---|---|
| 1.0.0.0 | headline.
Formatting.
|
