f_oldmat.m

来自「digital signal processing常用工具箱」· M 代码 · 共 22 行

M
22
字号
function [y,vernum] = f_oldmat

%F_OLDMAT: Check to see if MATLAB version is too old
%
% Usage: [y,vernum] = oldmat
%
% Outputs: 
%          y      = 1 if too old, 0 if ok.
%          vernum = version number
%
% Note: This is used by the GUI modules

matlab_ver = 6.1;
ver = version;
vernum = str2num(ver(1:3));
if vernum < matlab_ver
   fprintf ('\nThis GUI module requires MATLAB Version %.1f or later.',matlab_ver);
   y = 1;
else
   y = 0;
end

⌨️ 快捷键说明

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