Create movie file that plays at 10 frames per second:
- vrocapture('Open', 'myfirst.avi', gcf, 10);
- for k = 1:20,
- plot(rand(1,20));
- title(sprintf('Frame %d', k));
- vrocapture('Snap');
- end
- vrocapture('Close');
Create movie file that plays at 10 frames per second with compression, quality, and a user specified region:
- vrocapture('Open', 'mysecond.avi', gcf, 10, 1, 'cvid', 75, [10, 10, 100, 100]);
- for k = 1:20,
- plot(rand(1,20));
- title(sprintf('Frame %d', k));
- vrocapture('Snap');
- end
- vrocapture('Close');
Create movie file that plays at 6 frames per second, but stores every 3rd frame of the WorldUp ActiveX Control:
- vrocapture('Open', 'mythird.avi', '', 6, 3);
- for k = 1:3:21,
- set(MyBlock, 'Translation', [k, 0, 0]);
- vrocapture('Snap');
- end
- vrocapture('Close');
|
|
|