Problem while creating Video of Rotating 3D Plot :

5 次查看(过去 30 天)
I want to generate some sphere in three dimension space. While running the program, the video can be seen in matlab plotting window , but the mp4 file shows only the initial capture, no video is shown there. Kindly help me to find out the issue.
The program is given below:
clc ;
clear ;
[x y z] = sphere;
a=[3 3 3 3;-3 -3 -3 3]
s1=surf(x*a(1,4)+a(1,1),y*a(1,4)+a(1,2),z*a(1,4)+a(1,3));
hold on
s2=surf(x*a(2,4)+a(2,1),y*a(2,4)+a(2,2),z*a(2,4)+a(2,3));
daspect([1 1 1])
axis tight;
OptionZ.FrameRate=10;OptionZ.Duration=10;OptionZ.Periodic=true;
CaptureFigVid([-20,10;-110,10;-190,80;-290,10;-380,10], 'video',OptionZ)
  2 个评论
Riya Dey
Riya Dey 2018-12-17
See the following link.
https://in.mathworks.com/matlabcentral/fileexchange/41093-create-video-of-rotating-3d-plot

请先登录,再进行评论。

回答(0 个)

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by