- Right Click on the ".slx" file.
- Click on Properties.
- Go to the Details tab, there you would find a property named "Version number" which denotes the MATLAB version used to create the simulink file.

- The script uses Python's zipfile module to treat the ".slx" file like a ZIP archive and access its contents.
- Inside the archive, there is a file named "metadata/coreProperties.xml". The script reads this file to find the version information.
- Using XML parsing, it looks for the version tag and retrieves the version number.