Open In App

Simulink in MATLAB

Last Updated : 08 Oct, 2021
Like Article

MATLAB which is also known as “Matrix Laboratory” allows its user to manipulate matrixes, plotting of functions and data, creation of algorithms, and user interfaces written in different programming languages by providing a computing environment. MATLAB is software designed and powered by One can install it in different operating systems like Windows, Mac OS, and Linux as well as get access to the online platform. 

Whereas, Simulink is an additional package to MATLAB that allows model-based design for the embedded systems as well as a dynamic system along with the graphical multi-dimension simulation.  

In this article, the interfaces that will be shown via screenshots will be the online platform based. 

To use the online interface of MATLAB, follow the steps listed below. 

Step 1.  First, Visit the

Step 2. Click on the sign-in button.

Step 3.  A box as shown below appears on your screen, click on the Create account link. It will redirect you to the account creation section. 

Step 4. Fill up all the necessary information and your account has been created. Now, you will enter the page where you will be shown different ways of using MATLAB. One can use the license key, if have one, or can either install it in the system or one can use the trial for 30 days as I did. Make sure you have your work or university email for accessing 30 days trial pack for using it online, else you can always download it once you sign in to the MATLAB. All the steps for accessing Simulink in MATLAB will be the same in the installed version, too.

Step 5. So, once you select the option that you like, you will enter the interface like this, if you selected the Trial version. Now, click on the Open online Platform. 


Step 6. You will be taken to the screen. Now, take a minute or two to get familiar with the environment. 

Step 7. The screen that you first enter is the MATLAB’s interface. Go to the navbar, where you will find the Simulink, else you can type Simulink in the MATLAB interface. And you will be taken to the Simulink. Pictures shown here will be your interfaces. 

Step 8. Now to use Simulink, select create a blank model, and you will be taken to the screen like mine. 

Step 9.  Now, here we will show you to choose an RLC resistor and just have a single resistor from the RLC. For that, go to the navbar and select Library Browser. You will be taken to the library which contains a whole bunch of exciting circuits, components, and related kinds of information. 

When you will enter the Library on the left side you will see all the categories and the subcategories from where you can see and find the components, whereas, on the right side you will see the same thing but the subcategories in a descriptive way. You can even type the components that you need in the search box, but for that, you must know what you need and what it is called in the library. 

Step 10. Now for choosing an RLC circuit, you need to scroll down and locate Simscape. Select that and the dropdown menu will give you the options, and from that find Specialized power Systems. Select that and on the right side, you will see various categories the power systems contain. Head to the passive and select the RLC circuit. 

Step 11. To select the component and bring it to our blank model, click the right button, where a box appears and select add a block to the untitled [name of your document] block. [ Note: You can name your design beforehand, too. I prefer to name it at last]

Step 12. After that, you can see it present on your blank model. Now, double-tap on the component, and you will see Block parameter properties appear on your screen. It allows a user to customize and add the values as a user likes.  

Since we want to make a resistor, so selected R and added the value which results in something like this. You can even rename the component. For that, double click on the name written for the component, it will be selected, erase the name and give it yours. 

 Similarly, try adding other components, and make a full circuit. For learning more about the components, you can visit the official website for accessing the documents.  

Similar Reads

How to Select Random Rows from a Matrix in MATLAB?
A matrix is an n x n array that stores integers, floating point numbers or alphanumeric data in MATLAB. Indexing a matrix is the same as indexing an array. Syntax:matrix_name(i,j)where, i is the row number, and J is the column number which is to be indexed. Example 1: C/C++ Code % MATLAB code for select % random matrix elements mat = magic(5); mat(
2 min read
MATLAB Annotation
Annotations in MATLAB is a way of adding explanation or notes to the plots. Annotations add more information to the plots. There are different syntax formations for adding annotations to a plot: annotation(lineType,x,y)annotation(lineType)annotation(shapeType,dim)annotation(shapeType)annotation(___,Name,Value) Let's discuss all the above functions
3 min read
Global Variables in MATLAB
Variables in programming are generally storage spaces to store a certain type of data. There are many types of variables, but two commonly used types are local and Global variables. Generally, each MATLAB function has its own local variables. But sometimes for the sake of programming, we need to change the value of the local variable in another fun
4 min read
How to Calculate Harmonic Mean in MATLAB?
Harmonic mean is a type of mean, which is a measure of central tendencies of data, in statistics that gives large weightage to smaller data and small weightage to larger data. The Harmonic Mean in mathematical terms is nothing but the reciprocal of the mean of reciprocal values of all the data elements. Harmonic Mean in MATLAB:MATLAB provides a bui
2 min read
Copy Objects in MATLAB
In MATLAB, there are two kinds of objects - handles and values. The value objects are ordinary MATLAB objects which behave normally to copy operations. It means that when a value object is copied, the new copies of that object are completely independent of the original one i.e., if the original's value is changed, the copied object will not be chan
2 min read
How to create a function in MATLAB ?
A function is a block of statements that intend to perform a specific task. Functions allow the users to reuse the code frequently. MATLAB has several predefined functions which are ready to use such as sin(), fact(), cos() etc. MATLAB also allows the users to define their own functions. Syntax: function output_params = function_name(iput_params) %
2 min read
Creating Apps Using App Designer in MATLAB
MATLAB is a powerful, high-level programming language. Matlab is widely used for designing systems by engineers and scientists and we all know that the best way to represent any idea is by using a simple but effective GUI. Matlab app builder provides you the power to build different apps, to represent your idea in a GUI-friendly manner. In this art
3 min read
Mesh Surface Plot in MATLAB
Mesh Surface Plot is used to depict f(X, Y, Z) in a three-dimensional space. Matlab allows users to create mesh surface plots using the mesh() method. Different syntax of mesh() method are: Mesh(X, Y, Z)Mesh(Z)Mesh(___,C)Mesh(___, Name, Value)S = mesh()Mesh(ax,____)Mesh(X, Y, Z)It plots X, Y, Z on a three-dimensional surface.Matrices X, Y are plott
3 min read
How To Export a Matrix as a CSV File in MATLAB?
A CSV file - Comma Separated File, as the name suggests, is a file that stores data delimited by a ' , '. In MATLAB, there is a simple way of exporting a matrix to a csv file. The writematrix() function is used to write a matrix into any desired file type. The syntax is writematrix(<matrix_name>, "filename.extension"); This will create a new
2 min read
Laplacian of Gaussian Filter in MATLAB
The Laplacian filter is used to detect the edges in the images. But it has a disadvantage over the noisy images. It amplifies the noise in the image. Hence, first, we use a Gaussian filter on the noisy image to smoothen it and then subsequently use the Laplacian filter for edge detection. Dealing with a noisy image without a Gaussian Filter:Functio
4 min read
Article Tags :