www.gusucode.com > matlab 案例源码 matlab代码程序 > matlab/CheckIfFileFormatIsSupportedExample.m
%% Check if File Format is Supported %% % Check whether |VideoReader| can read AVI files on the current system. % Copyright 2015 The MathWorks, Inc. fmtList = VideoReader.getFileFormats(); if any(ismember({fmtList.Extension},'avi')) disp('VideoReader can read AVI files on this system.'); else disp('VideoReader cannot read AVI files on this system.'); end