当前位置:网站首页>MATLAB Programming Notes

MATLAB Programming Notes

2022-06-25 22:29:00 isDataWork

matlab How to get the file extension :

 [~, ~, ext]=fileparts(Filename);

matlab How to use UI Interface get file :

[Filename, Pathname] = uigetfile({'*.*'},' Select the picture you want to work with ');

matlab How to record a video

%  Start 
myVideo =  VideoWriter("video.avi"); %  Initialize a avi file 
myVideo.FrameRate = 5; %  Set the number of frames 
open(myVideo); %  open 

% middle 
Frame = getframe(gcf);
writeVideo(myVideo,Frame); %  write in 
% end 
close(myVideo); %  close 

原网站

版权声明
本文为[isDataWork]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202181057474922.html

随机推荐