How does matlab draw the following image?
이전 댓글 표시

Note that the basic geometric elements inside are spheres, cones and small cylinders, and that the known data are the 3D positions of the spheres [x1,y1,z1] and the 3D vectors of the arrows on each small ball [x2,y2,z2], which seems difficult
댓글 수: 3
The question is vague. What do you want to konw exactly? Are you asking for the code or how the drawing is implemente in Matlab?
If the code is your problem, what have you tried so far? At least drawing the 3 spheres seems to be trivial using the spheres command.
Is this a homework question?
Adam Danz
2022년 7월 18일
Currently there is no 3D quiver function that produces those types of objects. There may be a file in the file exchange that comes close, for example: arrow3. Alternatively, you could produce a 3D quiver using the functions you described (sphere, and cylinder for the arrow and bars). If you go that route, I would make a function that creates 3D quiver arrows given a vector of direction and a vector of magnitudes.
ma Jack
2022년 7월 24일
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Vector Fields에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
