Guy and Seth on Simulink

Results for: Commands

Model Explorer or Command Line? 2

Posted by Guy Rouleau,

Model Explorer or Command Line? Today I would like to ask you a question. This week I received a large model where I wanted to find all the Lookup Table blocks and modify their Index Search Method parameter. Since the model was quite large and I was not familiar with it, manually navigating to each block,... read more >>

Dynamics Mask Icons for Subsystem Variants 6

Posted by Guy Rouleau,

Dynamics Mask Icons for Subsystem Variants Today I will illustrate how to combine two features I like: Subsystem Variants and Masking. The Question I created a subsystem with two variants and I have specific masks for each variant: I would like to automatically display the mask of the active variant on the top subsystem. The Solution As you probably... read more >>

Different Results in Accelerated Mode Versus Normal Mode 8

Posted by Guy Rouleau,

Different Results in Accelerated Mode Versus Normal Mode By Guy Rouleau This week I received a large model giving different results when used as a referenced model in Accelerated mode, compared to the Normal Mode. To give you an idea, the top model in this application looked like this: After a quick inspection of the model, I found nothing obvious.... read more >>

How to customize the Simulink Scope! 20

Posted by Seth Popinchalk,

How to customize the Simulink Scope!  By Guy Rouleau As we all know, there is a tool for each job. You can hit a nail with a screwdriver, but the job is easier with a hammer. It’s the same thing to display Simulink data. One common question I receive in technical support is how to customize... read more >>

Is that model already open?

Posted by Seth Popinchalk,

Is that model already open? I was just clicking through my vast inbox of unread e-mail, and saw a MATLAB Central news reader alert. I quickly scanned the message and then clicked on the link to view the thread on MATLAB Central. Regular contributor Ben Harper asked the question: i can open a simulink file with "open_system" command. I... read more >>

Building Models with MATLAB Code 71

Posted by Seth Popinchalk,

Building Models with MATLAB Code  Occasionally I get questions about how to build, modify, and add blocks, to Simulink models using MATLAB commands. In this post, I will to give a basic overview of the common model... read more >>

How Many Blocks are in that Model? 12

Posted by Seth Popinchalk,

How Many Blocks are in that Model? My colleague Sam and I wanted to find an example model with about 10,000 blocks.  I suggested the HL-20 model from the Aerospace Blockset, asbhl20.mdl.  Sam decided to measure the total number of blocks by running sldiagnostics: >> [t,s] = sldiagnostics('asbhl20','CountBlocks'); s(1) ans =     isMask: 0       type: 'asbhl20 Total blocks'      count: 5700 Sam quickly sent me... read more >>

Searching in Simulink 25

Posted by Seth Popinchalk,

Searching in Simulink  Here we have an example library consisting of masked subsystems. sys = 'pidLibrary'; open_system(sys) When you double click on a block, you get the mask dialog, and the Help button displays the MaskHelp if you click on it. ... read more >>

These postings are the author's and don't necessarily represent the opinions of MathWorks.