MATLAB: How to get the source directory from command window

MATLABsimulink

Hello friends,
I have one simulink model opened in my matlab. I know the source directory of that model (.mdl file) and it is different than my current directory. (This is I manually changed). Now I want to know the path of that source directory from command window. Do you know how to get path of source directory.
on More information, we can see the reuired path into
'File' Menu >> Model Properties >> 'Main' Tab >> 'Source File'
How to get it? Please help me..
Thanks in advance..

Best Answer

The resolution is..
>>bdroot
>>filename = strcat(bdroot, '.mdl')
>>get_param(gcs, 'filename')
Thanks.. :)