MATLAB: Using version deatils of the tool box in application

MATLAB

HELLO ALL, Iam developing an application for code generation later. I would like to test the version of tool boxes required for my appliaction such as State flow every time the user tries to generate the code. I tried 'Ver' command to return all the version details of the tool boxes. It has returned a structure array containing fields as "name" "version" "release" "date"
How i can check whether the stateflow (which is member of the field 'name' ) version is above 7.0 or not?

Best Answer

One way
sas = ver;
iss = strcmpi( 'Stateflow', {sas.Name} );
sas(iss).Version
ans =
8.1