Skip to main content
v2026.11,986 entries · CC-BY 4.0

MATLAB and Simulink: What Simulink Adds and How to Build a First Model

MATLAB and Simulink explained: what Simulink adds, how to open it from MATLAB or in a browser, and a first-model walkthrough with menu names.

Written and maintained by CASRAI Editorial Board

Published · Last updated

On this page

MATLAB and Simulink are two products that work together. Simulink is a block diagram environment for multidomain simulation and Model-Based Design; you build a model by connecting blocks on a canvas, then run it from the Simulink Editor or from MATLAB. This guide is for researchers and analysts who know MATLAB scripts and want to know what Simulink adds, how to open it, and how to build and read a first model.

MathWorks describes Simulink as a block diagram environment for multidomain simulation and Model-Based Design, used to simulate a system before hardware exists. It works together with MATLAB: Simulink gives a graphical way to build the model, while MATLAB is used for parameter optimization, test and automation scripts, and analysing results. In other words, simulink matlab is not a choice between two tools; the same project can use both.

If your work is mainly… Start with Why (per MathWorks product pages)
Textual programming, data analysis, scripted automation MATLAB MATLAB is used for analysis, test scripts and automation around a model.
A system you describe as connected components that is simulated over time Simulink Simulink is a block diagram environment for multidomain simulation.
Targeting hardware from a model Simulink Simulink supports code generation for C, C++, CUDA, PLC, Verilog and VHDL, aimed at microcontrollers, DSPs, GPUs and FPGAs.

For the language itself, see What Is MATLAB Used For? and MATLAB indexing. Another simulation environment covered on this site is COMSOL Multiphysics.

Simulink is opened from inside MATLAB, so you need a MATLAB installation or a MATLAB Online session that includes it. For desktop setup see MATLAB installation; for what a license covers, see MATLAB licensing. Install only from MathWorks.

MathWorks offers Simulink Online for use in a browser. Sign in to MATLAB Online and either start Simulink or open an existing Simulink model; there is no separate Simulink login. MATLAB Drive provides 5 GB of storage for your files.

On the desktop, click the Simulink button in the MATLAB Toolstrip. The Simulink start page opens with New and Examples tabs. Choose the Blank Model template on the New tab to open an empty Simulink Editor, titled untitled.

This walkthrough follows the MathWorks tutorial Create a Simple Model (read 2026-11-07).

  1. Click Simulink in the MATLAB Toolstrip, then choose Blank Model on the New tab.
  2. On the Simulation tab choose Save > Save as and name the file, for example simple_model. Simulink gives it the .slx extension.
  3. Open the Library Browser from the Simulation tab. Use its search box to find blocks by name.
  4. Add a Pulse Generator (Sources), a Gain (Math Operations), a Second-Order Integrator (Continuous) and two Out1 blocks (Sinks). To set the gain value, double-click the Gain block and type it. Copy and paste blocks with Ctrl+C and Ctrl+V (command on macOS).
  5. Connect blocks by clicking the output port on the right of one block, then the chevron cue on the next block input.
  6. Set the Stop Time box on the Simulation tab (default 10.0).
  7. Run with Ctrl+T (command+T on macOS) or click Run on the Simulation tab.

Output and how to read it

Right-click a signal line and choose View in Data Inspector. In the Simulation Data Inspector, select Out1:1 to plot that signal against simulation time. Because Simulink works with MATLAB, you can also analyse results and script repeated runs from MATLAB.

Troubleshooting

If the Simulink button is missing or a model will not open, first check whether Simulink is installed with your MATLAB. Run ver in the Command Window: MathWorks documents that it lists the product name, version number and release name for MATLAB and all other installed products. If Simulink does not appear in that list, it is not installed in this MATLAB, and the fix is an installation or licence question rather than a model problem. See MATLAB installation and MATLAB licensing, or contact MathWorks or your institution’s licence administrator. A model saved by a newer release may also not open in an older one; check the release shown by ver against the release the model was saved in.

Free alternatives

If you do not have a Simulink licence, these free tools cover parts of the same ground. None is a drop-in replacement for Simulink models; check each project’s own documentation before committing a workflow to it.

Tool What the project says it is Cost and licence
Xcos (with Scilab) A graphical editor to design hybrid dynamical systems models; a dynamic systems modeler and simulator in discrete and continuous time domains. Freely available and distributed with Scilab.
OpenModelica An open-source, Modelica-based environment for modeling and simulation, intended for industrial and academic usage, supported by the non-profit Open Source Modelica Consortium. Open source and free, distributed in binary and source form.
GNU Octave A scientific programming language with syntax largely compatible with MATLAB; many MATLAB scripts run with little or no change. It is a language, not a block-diagram environment, so it replaces MATLAB scripts rather than Simulink models. Free software under the GNU General Public License.

FAQ

MATLAB is the programming and analysis environment; Simulink is a block diagram environment for simulation and Model-Based Design that runs together with it. MathWorks positions MATLAB for scripts, optimization and results analysis around Simulink models.

Click the Simulink button in the MATLAB Toolstrip, then pick Blank Model or an example from the start page.

Yes. Sign in to MATLAB Online and start Simulink or open an existing model; no separate Simulink login is needed.

The .slx extension, added when you save from the Simulation tab.

Sources

Follow CASRAI

Research-administration guidance, standards updates and independent tool reviews.

Ask CASRAI · full access

Ask about MATLAB and Simulink: What Simulink Adds and How to Build a First Model

Full access: large monthly usage, up to 10 source passages behind each answer, and MCP and API access for Claude Code, Codex and other CLIs. Cancel any time.

An AI assistant for research: funder rules, compliance, methods and publishing. It links the sources behind its answers and labels answers that come from a web search.

Answers draw on CASRAI's guides and dictionary plus the federal and funder documents we index: Federal Register, Grants.gov, Regulations.gov and UKRI.

Works on this site and inside Claude, Cursor and the AI tools you already use.

Everything CASRAI publishes — this page, the dictionary, the guides and the news — stays open to read, with no account and no card.

Referenced across the research world

University of Cambridge logoColumbia University logoCrossref logoUniversity of Edinburgh logoHarvard University logoUniversity of Oxford logoPrinceton University logoStanford School of Medicine logoUniversity College London logoORCID logoUniversity of Cambridge logoColumbia University logoCrossref logoUniversity of Edinburgh logoHarvard University logoUniversity of Oxford logoPrinceton University logoStanford School of Medicine logoUniversity College London logoORCID logo
  • University of Cambridge logo
  • Columbia University logo
  • Crossref logo
  • University of Edinburgh logo
  • Harvard University logo
  • University of Oxford logo
  • Princeton University logo
  • Stanford School of Medicine logo
  • University College London logo
  • ORCID logo

View CASRAI adoption →