06-25.txt

来自「MATLABR2006a基础教程」· 文本 代码 · 共 18 行

TXT
18
字号
try 
   [d, x] = readimage(imageFile);
catch
   err = lasterror;
   switch (lower(err.identifier))
   case 'MATLAB:nosuchfile'
      error('DisplayImg:nosuchfile', ...
            'File "%s" does not exist.', filename);
   case 'MyFileIO:noaccess'
      error('DisplayImg:noaccess', ...
            ['Can''t open file "%s" for reading\n', ...
             'You may not have read permission.'], filename);
   case 'MyFileIO:invformat'
      error('DisplayImg:invformat', ...
            'Unable to determine the file format.');
   end
end

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?