MATLAB: Convert .slx to .mdl from Matlab command prompt

command promptMATLABsimulinkslx to mdl

I have a model in slx format. I want to convert it to mdl format to do some text processing. Is there a command in Matlab which does this? I am aware that we can convert slx -> mdl from file-saveas etc. I am using Matlab R2016b.
Any help is greatly appreciated.
Nirav Ambaliya

Best Answer

Found commands which does the job.
open_system('SLXModel')
save_system('SLXModel','MDLModel.mdl')