FindMatlab: Matlab_VERSION has full version number
This allows users to say check at CMake project configure if their Matlab has been patched for a certain Matlab bug that might cause a project to fail.
Before: Found Matlab: /Applications/MATLAB_R2023b.app/extern/include (found version "23.2")
After: Found Matlab: /Applications/MATLAB_R2023b.app/extern/include (found version "23.2.0.2365128")
Also renamed osx to macOS in the docs and internal function name.
On Windows, instead of executing "reg query" it's much simpler and more robust to use cmake's built in registry query.
Fixes: #25250 (closed)
Topic-rename: FindMatlab-version-full
Edited by scivision