Problem while creating Video of Rotating 3D Plot :

6 views (last 30 days)
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
Riya Dey
Riya Dey on 17 Dec 2018
See the following link.
https://in.mathworks.com/matlabcentral/fileexchange/41093-create-video-of-rotating-3d-plot

Sign in to comment.

Answers (0)

Tags

Community Treasure Hunt

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

Start Hunting!