know the number of open unsaved(dirty) simulink files
3 views (last 30 days)
I'm trying to know the number o unsaved files that I have open in my simulink model. I have several open , and the function (strcmp(get_param(gcs,'Dirty'),'on')), is good but only gives me the current unsaved file, if I have more than 1 it doesn't help.
I'm looking for something that does the same think as this:
service = com.mathworks.mlservices.MLEditorServices;
% Get a vector of all open editors
editors = service.getEditorApplication.getOpenEditors();
% For each editor, if it is dirty, save it
for k = 0:(editors.size - 1)
editor = editors.get(k);
But for slx files, does enyone have any idea?