www.gusucode.com > mbctools 工具箱 matlab 源码程序 > mbctools/mbcver.m
function [v,n] = mbcver %MBCVER Return the version number of the MBC toolbox % % [STR, NUM] = MBCVER returns a string and a numeric equivalent % indicating the version of the Model-Based Calibration Toolbox. % Copyright 2000-2005 The MathWorks, Inc. and Ford Global Technologies, Inc. % Use ver to get version number versionStruct = ver('mbc'); % String representation v=versionStruct.Version; % Numeric equivalent n = sscanf(v, '%f'); if length(n)>1 % This may happen if version has more than one point, eg 2.1.1 n = sum(n.*logspace(0, 1-length(n), length(n))'); end