編集finfo()
することで問題が解決するようです。元のファイルを編集する権限がない場合は、変更したコピーをどこかに配置して、MATLAB のパスに追加してください。
変更されたものfinfo()
には次の行があります(私が持っているバージョンでは56行目から始まります)。唯一の変更点は、.m ファイルの処理が前に行われ、代わりにすべてのビデオ/オーディオ処理が行われることです。
if ~isempty(ext)
if any(strcmp(ext, {'m'}))
% try to find handler on the path
openAction = which(['open' ext]);
loadAction = which([ext 'read']);
else
% Get the list of supported video file formats on this platform
try
videoFileFormats = VideoReader.getFileFormats;
% extracting video file extensions
videoFileExt = {videoFileFormats.Extension};
...
...
...
end %(line 134)
現在のフォルダー パネルまたはコマンド ウィンドウから .m ファイルを開く操作がopen()
高速になりました。