CATIA-Systems / FMIKit-Simulink

Import and export Functional Mock-up Units with Simulink
Other
155 stars 50 forks source link

version query fails in rtwsfcnfmi_make_rtw_hook.m for MATLAB<R2020b #458

Open farndt opened 9 months ago

farndt commented 9 months ago

MATLAB versions before R2020b can not execute line 59 of rtwsfcnfmi_make_rtw_hook.m:

ver('MATLAB').Version
Error: Functions cannot be indexed using {} or . indexing.

Proposal:

version_struct = ver('MATLAB');
version = str2double(version_struct.Version);