Problem while creating Video of Rotating 3D Plot :

조회 수: 6 (최근 30일)
Riya Dey
Riya Dey 2018년 12월 17일
댓글: Riya Dey 2018년 12월 17일
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
KSSV
KSSV 2018년 12월 17일
What is this CaptureFigVid?
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