Problem while creating Video of Rotating 3D Plot :

5 Ansichten (letzte 30 Tage)
Riya Dey
Riya Dey am 17 Dez. 2018
Kommentiert: Riya Dey am 17 Dez. 2018
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 Kommentare
KSSV
KSSV am 17 Dez. 2018
What is this CaptureFigVid?
Riya Dey
Riya Dey am 17 Dez. 2018
See the following link.
https://in.mathworks.com/matlabcentral/fileexchange/41093-create-video-of-rotating-3d-plot

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by