Stateflow |
 |
sfversion
Return the current version of Stateflow
Syntax
Description
The global function sfversion
returns the current Stateflow version. Output is based on an options specifier, which is described below in the Arguments section.
Arguments
(nothing)
|
Returns the current Stateflow version in a readable string format with time-stamp.
|
'STRING'
|
Returns the current Stateflow version as a dot-delimited string.
|
'NUMBER'
|
Returns the current Stateflow version as a double .
|
'FULL_STRING'
|
Returns the full current Stateflow version as a dot-delimited string of numbers in the following 14-digit format:
where
sfr is the Stateflow release number in the following format:
matr is the MATLAB release, for example, 11 for R11.
matpr is the MATLAB point release, for example, 03 for Beta 3).
fr is the final release flag.
- This digit is 1 for an official final release and 0 otherwise.
build is a 6-digit internal build number.
|
'FULL_NUMBER'
|
Returns the current Stateflow full version number as a double.
|
Returns
ver
|
String or double of current Stateflow version, depending upon specifier argument
|
Example
Assume that you have just loaded the Beta 2 Release 13 of MATLAB with Version 5.0 of Stateflow. The date is July 14, 2002, and the time is 3:02 p.m. In this case, you might receive output like the following:
- The command
sfversion
returns the following:
- Version 5.0 Beta 2 (R13) dated July 14 2002, 15:02:34
- The command
sfversion('STRING')
returns the following:
- The command
sfversion('number')
returns the following:
- The command
sfversion('full_string')
returns the following:
- The command
sfversion('full_number')
returns the following:
| sfsave | | sourcedTransitions |  |