versioncheck.m
来自「这是一个基于matlab开发的关于c语言的图形转换程序,可实现直方图的生成和传输」· M 代码 · 共 19 行
M
19 行
function MATLABVERSION = versioncheck(x)
%VERSIONCHECK Check the Matlab Version
% MATLABVERSION = VERSIONCHECK(x) compares the number x to the
% version of Matlab on which the function is running. If x is
% less than the current Matlab version the function generates
% the error "This program requires Matlab version # or later"
% where # is replaced by x. MATLABVERSION is a variable
% containing the current version.
%
% See also SCREENSIZECHECK
% Jordan Rosenthal, 11-Sep-1999
MATLABVERSION = version;
MATLABVERSION = str2num(MATLABVERSION(1:3));
if MATLABVERSION < x
error(['This program requires Matlab version ' num2str(x) ' or later']);
end
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?