CATIA-Systems / FMIKit-Simulink

Import and export Functional Mock-up Units with Simulink
Other
161 stars 54 forks source link

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

Open farndt opened 1 year ago

farndt commented 1 year 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);