How can I determine if the Simulink Library Browser has been opened any time in the current session of MATLAB 7.6 (R2008a)?

1 view (last 30 days)

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 21 Jan 2010
When the Simulink Library Browser is opened, the 'libbrowse2.m' function is called. You can use the INMEM function to determine if the Simulink Library Browser has been opened before in the current session.
temp = inmem; %get a cell array of program files,Mex files,Java classes in memory
cmp = strcmp(temp,'libbrowse2'); %Compare each item of the cell array with the constant 'libbrowse2'
if any(cmp) %find if a match is present
disp('Simulink browser has been opened');
else
disp('Siimulink browser not opened before in this session')
end

More Answers (0)

Categories

Find more on Simulink Functions in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!