Can MATLAB code in an M-file successfully call slCharacterEncoding() without a Simulink license?

1 次查看(过去 30 天)
Can MATLAB code in an M-file successfully call
slCharacterEncoding()
or
get_param(0, 'CharacterEncoding')
to query the current locale's character encoding without needing a license which includes Simulink?
(I work at a place with a TEH site license which includes Simulink, so its not easy for me empirically determine this as I don't have access to a MATLAB license which doesn't include Simulink. However the MATLAB code I develop may be technology transfered to others who might not have a Simulink license, and it would be frivolous reason for them to have to purchase a SImulink license merely to enable my code to determine the current locale's character encoding.)

回答(1 个)

Fangjun Jiang
Fangjun Jiang 2020-8-20
Seems Yes.
>> license inuse
matlab
>> slCharacterEncoding()
ans =
'windows-1252'
>> license inuse
matlab

类别

Help CenterFile Exchange 中查找有关 Install Products 的更多信息

产品


版本

R2017a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by