disp.m

来自「Video IO toolbox for matlab. 用directsho」· M 代码 · 共 27 行

M
27
字号
function disp(vr)
%DISP(vr) displays a videoWriter object without printing its name.

ctor = class(vr);

% merge Matlab-side and plugin-side metadata
einfo = struct(vr);
info = getinfo(vr);
fnames = fieldnames(info);
for i=1:length(fnames)
  fname = fnames{i};
  einfo.(fname) = info.(fname);
end
einfo = orderfields(einfo);

% make pretty plugin name...the way the constructor expects it
if isfield(einfo, 'plugin') && strmatch([ctor '_'], einfo.plugin) 
  einfo.plugin = einfo.plugin(length(ctor)+2:end);
end

% actual display
disp(['  ' ctor ' object']);
if ~isequal(get(0,'FormatSpacing'),'compact')
  disp(' ');
end
disp(einfo);

⌨️ 快捷键说明

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