function ver = matlabv
% MATLAB major version
tmp = version;
ver = str2num(tmp(1));
