# verLessThanFS

verLessThanFS compares version of MATLAB to specified version number

## Syntax

• result=verLessThanFS(vernumber)example

## Description

function verLessThanFS is much faster than verLessThan because it just checks the version of MATLAB and calls directly the relevant built in functions. The number containing the MATLAB version is cached for better performance. In order words, the first time verLessThanFS is called the number associated to the MATLAB version is stored in persistent variable named cachedMatlabVerFS

 result =verLessThanFS(vernumber) Test whether the current version is older than MATLAB version 8.4.

## Examples

expand all

### Test whether the current version is older than MATLAB version 8.4.

numbertotest = 8.4;
out=verLessThanFS(numbertotest);
if out == true
disp(['current version is older than ' num2str(numbertotest)]);
else
disp(['current version is not older than ' num2str(numbertotest)]);
end

## Input Arguments

### vernumber — version of MATLAB to test. double.

Number containing the version of MATLAB to test again current version.

Example - 8.3

Data Types: double

## Output Arguments

### result —True or false. Boolean

result is true if the current version of version of MATLAB is older than the version specified by vernumber, and false otherwise.