Problem while creating Video of Rotating 3D Plot :
5 views (last 30 days)
Show older comments
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 Comments
Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!