How do I search for library links in my model from the command line in Simulink 7.4 (R2009b)?

In Model Explorer I have an option to search for library links in my model. I would like to know how I can achieve the same using the command line tools.

ANSWER

Matlabsolutions.com provide latest MatLab Homework Help,MatLab Assignment Help for students, engineers and researchers in Multiple Branches like ECE, EEE, CSE, Mechanical, Civil with 100% output.Matlab Code for B.E, B.Tech,M.E,M.Tech, Ph.D. Scholars with 100% privacy guaranteed. Get MATLAB projects with source code for your learning and research.

In order to obtain a list of blocks that are library links you will have to find all blocks in your model that have their ‘LinkStatus’ property not set to ‘none’. One way to achieve this would be to use the FIND_SYSTEM command with a regular expression that excludes all results that are equal to ‘none’:

libraryLinks = find_system(gcs, 'regexp', 'on', 'linkstatus', '^((?!none).)*$')

You may want to use the ‘LookUnderMasks’ option of FIND_SYSTEM as well to find the blocks under masks as well.

Alternatively you could use several FIND_SYSTEM calls to find all blocks with another status and combine the results.

SEE COMPLETE ANSWER CLICK THE LINK

--

--

--

Simple! That is me, a simple person. I am passionate about knowledge and reading. That’s why I have decided to write and share a bit of my life and thoughts to.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Coding Mentors: Here’s How to Find One

Demystifying Subnetting in IPV4 Networks

Populating the EDMS Repository — HL7 FHIR Care Connect (Part 2)

Writing CSV with Jackson

Adding a Navbar to your Rails app with Bootstrap

How chatbots save business resources and speed up work, using the example of POSiFLORA

Head First Java Chapter 15 — Make a Connection

UCSC Spring 2020 — Week 2

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Technical Source

Technical Source

Simple! That is me, a simple person. I am passionate about knowledge and reading. That’s why I have decided to write and share a bit of my life and thoughts to.

More from Medium

Underwater soundwave for different starting angles

End to End Machine Learning with H2O.ai

Neural Networks: Inside the Black Box

Entropy : An essential measurement in machine learning.