save 3D matrix as gif

버전 1.0.0.0 (1.68 KB) 작성자: Geert
Function that saves a 3D matrix in a gif image file.
다운로드 수: 811
업데이트 날짜: 2013/8/29

라이선스 보기

save_3D_matrix_as_gif
---------------------
Function that saves a 3D matrix in a gif image.

input:
filename = the desired name of the output file
e.g.: 'C:\Users\John\Desktop\animation.gif'
or 'animation.gif' (saves in current folder)
matrix = the 3D matrix, matrix(:,:,n) contains the n'th frame of the
desired gif animation
delaytime = optional argument to specify the delay time (in seconds)
of the gif file (default = 0.1 sec)
output:
/

example:
Im = zeros(100,100,20);
% create circles with decreasing radii
for ii=1:20
Im(:,:,ii) = phantom([1 1/ii 1/ii 0 0 0],100);
end
save_3D_matrix_as_gif('C:\Users\John\Desktop\name_of_gif_file.gif',Im,0.2)

author: Geert Van Eyndhoven
contact: vegeert[at]hotmail[dot]com

인용 양식

Geert (2024). save 3D matrix as gif (https://www.mathworks.com/matlabcentral/fileexchange/43270-save-3d-matrix-as-gif), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2013a
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Import, Export, and Conversion에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!
버전 게시됨 릴리스 정보
1.0.0.0