MATLAB: How to find the location and name of a model in Simulink 6.4 (R2006a)

caseclearclearcasecontrolcvsdirectorygcspathsimulinkversion

For version control purposes, I want to know the filename (with location) of a currently open model.

Best Answer

You can find an open model's file name using the FileName property with the following syntax:
get_param(bdroot,'FileName')