How to use MATLAB input Function

Hello everyone! I hope you all will be fine and having fun. Today, I am going to share my knowledge about How to use MATLAB input Function. In this tutorial I would like to tell you about the importance of getting data from the user in MATLAB. If you want to display the data to users, you need to get data from them as well according their requirements. I hope you have read How to use MATLAB ? In this way the same source code written in MATLAB will give different result according to the requirements of the each user. So, in other words the source code becomes generic in this way. As we run the program, command window of the MATLAB asks user to enter the desired input. The results on this window are generated according to the Matlab input given by the user. You should also have a look at Laplace Transform in MATLAB.

How to use MATLAB input Function

Here, in this tutorial I will explain you the importance and the procedure about How to use MATLAB input Function. The one of the main advantage of getting the data from the user is, the algorithm becomes generic in this way. The different users can get different types of results from the same program according their requirements. The user has to enter the input on the command window and can get the desired results according to the given input.
Getting User Data
  • First of all open your MATLAB software and go to the editor in MATLAB.
  • Write a simple code in editor as shown below.
clc
x=input('Enter the value of x = ');
y=input('Enter the value of y = ');
x+y
  • Move to the command window and observe the results.
  • As you Run the program you will automatically move to the command window.
  • Command window will ask to enter the value of the first variable, which is x in this case.
  • The result of the above program is shown in the figure below:
Note:You should also have a look at these MATLAB projects as well:
  • After entering the value of x command window will ask to enter the value of the second variable, which is y in this case.
  • The figure shown below displays the above results.
  • As you enter the value of y and press Enter, you will be able to see the result of the addition of the both of the variables.
  • The result is shown in the figure below.
  • Till now, I have performed addition operation on the variables whose values are given by the users and the program shows the different results for each user.
  • You can also perform a lot of other operations on these variables.
  • Here, I am going to perform basic mathematics operations on these two variables.
  • The code for multiplication operation is shown below.
clc %clearing command window
x=input('Enter the value of x = ');%takes the value of x from the user
y=input('Enter the value of y = ');%takes the value of y from the user
product = x*y %performing multiplication
  • The input MATLAB code will look something as shown in below figure:
  • The result on the command window is shown in the figure below.
  • Now, I am going to perform the division operation on the both of the variables.
  • The source code for the division operation is shown below.
clc %clears comand window
x=input('Enter the value of x = '); %takes the value of x from the user
y=input('Enter the value of y = '); %takes the value of y from the user
product = x/y  %performing division operation
  • The result of the above source code is shown in the figure below.
  • Similarly you can perform a lot of other operations on the variables whose values are given by the user.
  • So, that was the brief discussion about How to use MATLAB input Function.
  • Here's the video in which I have explained in detail How to use MATLAB input Function:
So, that is all from the tutorial How to use MATLAB input Function. I hope you enjoyed this tutorial. If you find any sort of problem, you can ask in comments anytime without even feeling any kind of hesitation. I will try my level best to solve your issues in a better way, if possible. You should also have a look at Introduction to MATLAB. In my next tutorial I will elaborate that how to generate rectangular signals in MATLAB and how to manipulate them. I will further explore MATLAB in my later tutorials by making further projects on it and will share them with all of you as well. So, till then, Take Care :)

How to use MATLAB

Hello everyone! I hope you all will be absolutely fine and having fun. Today, I am going to share my knowledge about How to use MATLAB. This is an on demand tutorial. The tutorial will help you to learn the the basics of the MATLAB and will elaborate the use of the different tools of it e.g. command window, m.file, Graphical User Interface (GUI) and simulink. Before into the details of this tutorial you must go through Introduction to MATLAB first for the better understanding of this tutorial. Each of the tools has its own importance while making an algorithm in MATLAB. Command window basically deals with the shorter commands where there is a need of quick execution. Command window shows the result of all of the executed commands if there is no semicolon at the end of the particular statement. You must also have a look at Declaration of Variables in MATLAB. MATLAB provides high level of technical computing. It provides an easy to use environment for computation and programming to solve problems and their solutions can be expressed in mathematical symbolic notations. MATLAB can be used for a lot purposes e.g. computational mathematics, simulation, mathematical modeling, engineering graphics, data analysis, prototyping etc. MATLAB works on the basis of matrices whose basic building is an array. MATLAB system has different parts which will be discussed later in this tutorial. MATLAB has a lot of tool boxes in order to provide easiness to the users. Signal processing tool, fuzzy logic tool, control systems tool and simulation tool are its major tools that are used most frequently.

How to use MATLAB

Here in the tutorial, How to use MATLAB, I will tell you about the basics of the MATLAB and the necessary steps to use the different tools of the MATLAB e.g. command window, GUI, simulink and m.file. First of all I would like to tell you a brief description of the MATLAB software.
Parts of MATLAB
  • There are five different main parts of the MATLAB.
  1. MATLAB Language.
  2. MATLAB Working Environment.
  3. Handle Graphics.
  4. MATLAB Mathematical Functional Library.
  5. MATLAB Application Program Interface.
  • All of these five parts are shown in the figure below.
  • The brief description of each of the part is given below.
1) MATLAB Language
It provides high level matrices language. This language includes the features like flow statements, data structures, object oriented programming, input/output etc. It provides the facilities for programming at lower as well as on higher scales. We have posted many Matlab projects in which I have used MATLAB Language, here are few of these projects:
2) MATLAB Working Environment
This part provides set of tools and facilities to the MATLAB users. The facilities include the management of variables in workspace, debugging, m.files and import and export of the desired data. MTALB working environment is shown in the figure below:
3) Handle Graphics
This is a MATLAB system for graphics and it includes image processing and data visualization in two dimensions as well as in three dimensions. It also includes the designing of complete Graphical User Interface in MATLAB. Handle graphics in MATLAB is shown in the figure below:
4) MATLAB Mathematical Functional Library
  It has a wide range of computational algorithms from the lower level (e.g. sum, sine, cosine) to the higher level (e.g. matrices inverse, matrices eigen values etc.). Mathematical functional library is shown in the figure below.
5) MATLAB Application Program Interface (API)
It provides you a library to write C programs as well as Fortran programs which interact with the MATLAB. It provides a lot of facilities e.g. MAT files. MATLAB application program interface (API) is shown in the figure below.
  • So that was the brief description of the five different parts of the MATLAB.

How to use MATLAB Command Window

Here in this section of the tutorial How to use MATLAB, I will tell you about the the steps to use the command window in MATLAB and its importance in different circumstances. Command window is used to display the results of the algorithm immediately. When you do not specify an output variable whose values is desired to be obtained, then MATLAB uses a variable named as ans which is the short form of the word answer. This step is shown in the figure below. Command window is the window which displays the output in non-graphic form. The symbol >> shows that the MATLAB is ready for the input to be entered.
  • Here I would like to show you the use of command window.
  • I have declared three different variables named as a,b and c.
  • I have stored the value of the sum of first two variables in the third variable.
  • The result is shown in the figure below.
  • Command window will only display the result of that statement which has no terminating semi colon.
  • Now I am going to compute the values of trigonometric functions.
  • The result is shown in the figure below.
  • So that was the overview of how to use MATLAB command window.

How to use MATLAB m File

Here in this section of the tutorial How to use MATLAB, I will tell you about how to use the m.file in MATLAB. It is also known as the editor in MATLAB. You must also visit How to Create m.file in MATLAB for the better understanding.
  • I am going to add the simple two of the variables and storing it into the third variable while creating m.file in MATLAB.
  • The result of the above description is shown in the figure below.
  • Now, I am going to plot a simple sinusoidal signal while creating an m.file in MATLAB.
  • The source code is shown in the figure below.
  • The resulted plotted sinusoidal signal is shown in the figure below.
  • So, that was the brief description about How to create or use m.file in MATLAB.
Note:These are few MATLAB projects in which I have written the MATLAB code in m File:

How to use MATLAB Simulink

Here in this section of the tutorial How to use MATLAB, I will explain you that how to use this amazing tool of the MATLAB. It represents the source code in terms of different blocks. First of all I would like to tell you that how to open the simulink library in MATLAB.
  • You need to follow the steps given below.
  • Open your MATLAB software, a new window with different MATLAB sections will be appeared on your screen.
  • Click on the encircled button as shown in the figure below.
  • As you press this button, a new window having simulink library in it, will be opened on your screen.
  • The simulink library is shown in the figure below.
  • Now, I am going to generate two simple sinusoidal signal in MATLAB simulink.
  • Press Ctrl+N and a new window will appear upon which we need to place the desired blocks.
  • Go to the Sources and select the sine wave block from it.
  • Drag this blcok and drop it on the second window as shown in the figure below.
  • Similarly copy and paste the same block.
  • Here I am going to add the both of the sinusoidal signals having phase shift of 90 with each other.
  • I have placed a scope to observe the addition of the both of the signals visually.
  • All of the above steps are shown in the figures below.
  • The selection of the add block is shown in the figure below.
  • The selection of the scope is shown in the figure below in order to visualize the results.
  • Now, the complete source code for the addition of two sinusoidal signals is shown in the figure below.
  • After making this algorithm just run the program by clicking on the button encircled in the above figure.
  • Double click on the Scope in order to visualize the desired result.
  • The result of the addition of both the signals is displayed on the scope and is shown in the figure below.
  • So, that was the brief description about how to open and use simulink library in MATLAB.

How to use MATLAB GUI

In this section of the tutorial How to use MATLAB, I will explain you about how to create Graphical User Interface (GUI) in MATLAB and how to operate it. GUI displays the desired results visually which helps us in better understanding of the algorithm instead of observing the results in analog form or in digital data. It also provide better external look to the designed algorithm. You should also have a look at How to Create a GUI in MATLAB. I have designed many projects using GUI in MATLAB so you go through these below projects: In order learn that how to perform different tasks using GUI in MATLAB, you need to follow the below steps:
  • Go to the command window and type guide there.
  • The step is shown in the figure below.
  • When you press Enter a new window will be appeared on your screen.
  • Go to the Create New GUI and select the blank GUI and hence a new GUI will be opened and its source code will be generated automatically in m.file of the MATLAB.
  • The above steps are shown in the figure below.
  • Now, pres OK button and a GUI will be appeared on your screen.
  • The GUI appeared on the screen is shown in the figure below.
  • Now you can pick and place the buttons, tables and graphs from the left side of the GUI.
  • I picked a graph, a table and a button from the left bar of the GUI.
  • All of the above steps are shown in the figure below.
  • That was the overview of the basics of the MATLAB.
So that is all from the tutorial How to use MATLAB. I hope you enjoyed this tutorial. If you face any sort of problem regarding anything, you can anytime ask me in comments, freely, without even feeling any kind of hesitation. I will try my level best to solve you issues in some better way, if possible. I will explore MATLAB and other software and hardware too in my later tutorials later and will surely share them with all of you guys as well. So, till then, Take Care :)

Stepper Motor Projects

Hello everyone! I hope you all will be absolutely fine and having fun. Today, I am going to share a list of Stepper Motor Projects using different software e.g. Arduino, Matlab and NI LabVIEW. I have already shared these projects but they are posted randomly. So, today I thought that I should combine all those projects into a single one. So I am going to share the links of all of those tutorials in this tutorial so that it may be helpful for engineering students or anyone who wants to visit. This tutorial will help you to visit all of my Stepper Motor Projects. You should also have a look at this Stepper Motor Simulation in Proteus. The links of all the tutorials will be given and you will be able to download the desired project code or simulation from the corresponding link. I will make separate sections for each software to control stepper motor. In each section all the possible controls of stepper motor will be given in detail. If you have any sort of problem, you can ask in comments. I will try my level best to solve your issues. So, let's get started with Stepper Motor Projects. first of all, I will post projects i which I have done direction control of stepper motor:

Stepper Motor Projects

In this section of Stepper Motor Projects, I will provide you the list of the tutorials in which I have already controlled the direction of the stepper motor using three different software e.g. Arduino, Matlab and NI LabVIEW. I have used the same hardware and Arduino source code in all of these tutorials. In case of Matlab and NI LabVIEW I have sent commands through the serial monitor towards Arduino and hence the whole system works.
Stepper Motor Direction Control using Arduino
In the tutorial Stepper Motor Direction Control using Arduino, I have interfaced a stepper motor with Arduino UNO board to control its clockwise and counter clockwise direction. I have used a motor controller named as H-Bdridge to control the direction of stepper motor. It can control only one stepper motor at a time.. The algorithm was very simple. Commands for clockwise and counter clockwise rotation are sent through the serial monitor of Arduino softwrare. These commands are then passed to the motor controller and then it decides the direction of rotation of stepper motor after manipulating the Arduino commands. Direction of stepper motor can be reversed by simply changing the polarity so L298 controls the direction of the stepper motor by continuously making its pins low, high and vice versa.
  • You can download the complete simulation there.
  • Download .rar file, extract it and enjoy the complete simulation:
Stepper Motor Direction Control Using Arduino
Stepper Motor Direction Control using Matlab
In the tutorial Stepper Motor Direction Control in Matlab, I have created a simple Graphical User interface (GUI) in Matlab having three different buttons for controlling the clockwise, counter clockwise direction of the stepper motor and to stop the stepper motor as well. Two more buttons are also there on the GUI for opening and closing the serial port. As we press any of the buttons, corresponding command is sent through the serial port from Matlab to Arduino and then Arduino transfers those commands to the H Bridge and hence the entire process gets completed. Pressing the Open Serial Port button, serial port will be opened and we will be able to communicate with the Arduino using serial communication and at the end we must close the serial port in order to avoid the exchange of unnecessary commands being sent through the serial port.
  • You can download the complete simulation here.
  • Download .rar file, extract it and start playing with the simulation.
Stepper Motor Direction Control Using MATLAB
Stepper Motor Direction Control using NI LabVIEW
In the tutorial Stepper Motor Direction is Controlled in NI LabVIEW, I have controlled the clockwise and counter clockwise direction of the stepper motor using serial communication between NI LabVIEW and Arduino. Commands like C, S and are sent through NI LabVIEW towards Arduino for clockwise rotation of the stepper motor, stop the stepper motor and anti clockwise rotation of the same stepper motor respectively. There are three different buttons on the front panel of NI LabVIEW. These buttons are used to send commands C, S and from NI LabVIEW to Arduino using Serial communication.
  • You can download the complete simulation here.
  • Download .rar file, extract it and start playing with the simulation.
Stepper Motor Direction Control in LabVIEW
Stepper Motor Direction Control using PIC Microcontroller
First of all I have made Stepper Motor Drive Circuit in Proteus ISIS and I have controlled the speed angle as well as the direction of the stepper motor using PIC micro controller. I have made a pretty simple logic. I have placed a serial terminal in my Proteus simulation. You have to sent the commands through that serial terminal. The stepper motor will change its direction as well the speed after manipulating those commands.
  • You can download the complete simulation here.
  • Download .rar file, extract it and start playing with the simulation.
Stepper Motor Direction Control using PIC Microcontroller

Stepper Motor Speed Control

In this section of Stepper Motor Projects, I will provide you the list of the tutorials in which I have already controlled the speed of the stepper motor using three different software e.g. Arduino, Matlab and NI LabVIEW. I have used the same hardware and Arduino source code in all of these tutorials. In case of MATLAB and NI LabVIEW I have sent commands through the serial monitor towards Arduino and hence the whole system works.
Stepper Motor Speed Control using Arduino
In Stepper Motor Speed Control using Arduino, I have actually used the builtin command myStepper.step to control the speed for the stepper motor. For this purpose, I have not used PWM pins of L298 motor controller instead I only used input pins of it, to control the speed of the stepper motor. By assigning higher values to the myStepper.step motor can be rotated at higher speed. Similarly motor will rotate slowly if the value of myStepper.step is lower. All the executed commands are printed on the serial monitor and I have also printed those executed commands on LCD as well for this project.
  • You can download the complete Arduino Source code here.
  • Download .rar file, extract it and start playing with the simulation.
Stepper Motor Speed Control using Arduino
Stepper Motor Speed Control in Matlab
In Stepper Motor Speed Control in Matlab, I have created a  Graphical User Interface (GUI) in Matlab having two extra buttons as compared to the GUI of Stepper Motor Direction Control in Matlab. One for continuously accelerating the speed of the stepper motor and the other for continuously deaccelerating the speed of the same stepper motor. As we press any button, corresponding command will be sent through the serial port from Matlab to Arduino using serial communication. The logic created is pretty simple, the speed of the motor will accelerate continuously as many time we press the button and if the maximum speed is reached, motor maintains the same speed even we continue to enhance its speed. Same procedure will be followed to reduce the speed of the stepper motor.
  • You can download the complete simulation here.
  • Download .rar file, extract it and start playing with the simulation.
Stepper Motor Speed Control using MATLAB
Stepper Motor Speed Control using NI LabVIEW
This one is the last one among Stepper Motor Projects, named as Stepper Motor Speed Control in NI LabVIEW, I have have placed five different buttons on the front panel to control the direction as well as the speed of the DC motor. By pressing the Accelerate button again and again speed of the stepper motor will increase in proportion to the number of times the buttons is pressed. Similarly, by pressing Deaccelerate button again and again the speed of the stepper motor will decrease in proportion to the number of times the button is pressed. First of all you need to press the Start button in order to start the serial communication between NI LabVIEW and Arduino. After pressing it you will be able to send the commands serially from NI LabVIEW towards Arduino.
  • You can download the complete simulation here.
  • Download .rar file, extract it and start playing with the simulation.
Stepper Motor Speed Control using LabVIEW These are all Stepper Motor Projects posted yet on our blog. I hope you all enjoyed this tutorial. If you face any sort of problem you can ask me anytime without even feeling any kind of hesitation. I will try my level best to solve your issue in a better way, if possible. I will explore Arduino, Matlab and NI LabVIEW further in my later tutorials. Till then, Take care :)

LCD Interfacing with Microcontrollers

Hello everyone! I hope you all will be absolutely fine and having fun. Today, I am going to combine all of my previous tutorials for LCD Interfacing with Microcontrollers, at a single platform for your easiness. You will able to see and learn the interfacing of LCD with three different microcontrollers. Before going into any detail I would like to tell you a bit about the history of LCD. There are a lot of devices in the market now a days, which can be used as the displaying devices. LCD's are also among those devices and considered as the one of the most important devices specially for the microcontroller based projects. The word LCD is basically abbreviated from Liquid Crystal Display because it is made up of Liquid Crystal Technology. LCD is also a great debugging tool just like Serial Port. It becomes a lot difficult to use any debugger every time and is not reliable too. Where as LCD's can used to observe the output quickly while making changes in your code. It plays a vital role in almost all kinds of microcontroller based as well as electronic based projects. While making these types of projects we need to display the output and some messages. Seven segment is the basic the device to do that task but it has a lot of limitations. Another best option available is LCD. It comes in different dimensions. The most commonly used LCD's have dimensions of 16×2 i.e. 16 columns and 2 rows. It is capable of displaying 32 ASCII characters, 16 characters per line. Other dimensions of the LCD includes 20×4, 128×64 etc. You just need to know how to interface the LCD and then you will find that it is the easiest, cheapest and reliable output device available in the market. LCD has a wide range of applications e.g. robotics, power electronic based projects, microcontroller based projects, mobile phones, cameras, high resolution color displays.

LCD Interfacing with Microcontrollers

Here in the tutorial, LCD Interfacing with Microcontrollers, I will tell you about the configuration of the LCD, its pins specifications and about the procedure to interface it with different microcontrollers e.g Arduino, PIC Microcontroller and 8051. First of all, I would like to tell about the desired components and their specifications in the form of a list.
Components Required
The list for the basic and necessary components required while LCD Interfacing with Microcontrollers is given below.
  1. Microcontroller (Arduino, PIC, 8051)
  2. Jumper Wires (Male-female)
  3. Soldering Iron
  4. Soldering Iron and Gum
  5. Male Pins for LCD
  6. LCD (either 16×2 or 20×4)
Components Description
  • Microcontroller acts as the back bone of any project because it controls and handles all the tasks and is used to exchange the desired commands either serially or simultaneously. In the tutorial LCD Interfacing with Microcontrollers, I am going to use three different microcontrollers as the backbone of the project, i.e. Arduino, PIC microcontroller and 8051 microcontroller.These microcontrollers are shown in the figure below.
  • Jumper Wires are basically used for making the connections between microcontrollers and LCD in order to obtain the circuit in proper working condition. The jumpers wires are usually of for different types i.e. male-male, male-female, female-female and female-male. The jumper wires are shown in the figure below.
  • Soldering Iron is used to join the male pins with the LCD specifically in this case. Its a device or an electronic equipment used to make the permanent connections between two or more devices. Soldering Iron is shown in the figure below.
  • Soldering Gum and Stand are used for the purpose of clean soldering and supporting the solder respectively. The soldering gum along with the soldering stand is shown in the figure below.
 
  • Male Pins for LCD are used to make connect between LCD and microcontroller. These supporting pins are shown in the figure below.
  • Liquid Crystal Display (LCD) is used to display output messages and the desired results. LCD are available in the markets now a days, in different sizes. 16×2 and 20×4 are the most commonly used dimensions of the LCD. This type of LCD has 16 pins. Each pin is associated with the different function. The functions associated with each pin of the LCD are shown in the table below.
  • LCD can be operated in two different modes 4-bit mode and 8-bit mode, depending upon the selection of data pins. If we have selected four of its data pins (DB0-DB3) then LCD will be in 4-bit operating mode and if we have selected all of its data pins (DB0-DB8) the LCD will operate in 8-bit mode. 16×2 LCD is shown in the figure below.
  • Another most frequently used small LCD with 20×4 dimension is shown in the figure below.
  • For the proper working of LCD in 4-bit mode we need to use four of its data pins i.e. (DB4-DB7). In total we need to use 8 pins including RS, Enable, DB4, DB5, DB6, DB7, Voltage (5V) and Ground (0V). Data pins are used for the exchange of the data between microcontrollers and LCD.
  • RS is the pin 4 of the LCD and it selects data register when high and command register when low as described in the above table.
  • Enable is the pin 6 of the LCD. When it is high a low pulse is provided and it i used to send data to data pins (DB4-DB7) in this case.
  • So, that was the brief discussion of the components necessary for LCD Interfacing with Microcontrollers.
  • Now, I am going to combine all of my previous tutorials related to LCD interfacing with different microcontrollers here on a single platform.

New LCD Library for Proteus

In this tutorial, I have shared a new LCD library for Proteus which will help you in interfacing LCD with Arduino or any other microcontroller in Proteus ISIS. We have designed two new LCDs in Proteus. Proteus already has builtin libraries for LCD but they are not such good looking. So, I designed them which are good looking as compared to the builtin LCDs of the Proteus. I have provided two different libraries in this package. You just need to copy and paste them in libraries folder of your installed Proteus software. After restarting the Proteus software you will be able to search two different LCD's with excellent external look. Pick anyone of them from the search option and start interfacing it with the Arduino in Proteus and observe its working.
  • You can download these libraries here by clicking on the button below.
  • Download .rar file, extract it and enjoy these libraries.

Download LCD Library for Proteus

LCD Interfacing with Arduino

Here, in this section of the tutorial LCD Interfacing with Microcontrollers, I will combine my previous tutorials having detailed discussion about how to interface LCD with Arduino.
Scrolling Text on LCD with Arduino
Here, in the tutorial Scrolling text on LCD with Arduino, I have shared my knowledge with all of guys that how make an algorithm in Arduino software in order to generate a scrolling text on LCD. I have used a very basic 16×2 LCD in Proteus for this article. This tutorial will help you to learn how to interface 16×2 LCD with Arduino and how to display a scrolling text on it in Proteus. I have written a simple code to print the name of our website on LCD first, then I updated the same code for displaying the name with a movement in both left and right direction.
  • You can download the Arduio source for displaying scrolling text on LCD.
  • Download .rar file, extract it and enjoy the complete code.

Arduino Source Code

ADC Value on LCD using Arduino
In the tutorial ADC Value on LCD using Arduino, I have provided the detailed discussion about the circuit designing for LCD to interface it with Arduino. The design consists of two types of transformers named as current transformer and potential transformer. AC power is supplied to these transformers which is converted into 5V later. After designing the circuit properly I have designed an algorithm to display ADC values on LCD using Arduino. The second part of this section of the tutorial LCD Interfacing with Microcontrollers consists of the source code for displaying ADC values on LCD using Arduino in Proteus. The algorithm is very simple and is easy to understand. The function for displaying voltage is a bit complicated but not so difficult.
  • You can download the circuit designed in Proteus and the Arduino Hex file here by clicking on the button below.
  • Just download the .rar file, extract it and enjoy the complete package containing both Proteus design as well as Arduino Hex file.

Proteus Simulation & Arduino Hex File

LCD Interfacing with 8051 Microcontroller

In this section of the tutorial, LCD Interfacing with Microcontroller, I will explain you that how to interface an LCD with 8051 Microcontroller and the step by step procedure to design a simple program for 8051 microcontroller in order to display the messages on the LCD interfaced with it. In the tutorial, I have given a detailed discussion about both, the designing of the circuit in Proteus as well as the source code for printing the text on LCD using 8051 microcontroller. I have divided this tutorial in two different parts. The first part includes the designing of the circuit in Proteus whereas the second part contains the description about the embedded code for 8051 microcontroller. Source code is written using keil uvision3 compiler and 8051 microcontroller. I have used AT89C51.
  • You can download the complete Proteus design and the complete source code here by clicking on the button below.
  • Download .rar file, extract it and enjoy the complete package.

Proteus Simulation and Code

LCD Interfacing with PIC Microcontroller

Here, in this section of the article LCD Interfacing with Microcontrollers, I have shared a detailed discussion with all of you guys about designing a circuit for LCD interfaced with PIC microcontroller as well as about designing an algorithm to display ADC value on LCD using the same microcontroller i.e. PIC microcontroller.
Display ADC Value on LCD using PIC Microcontroller
In the tutorial Display ADC Value on LCD using PIC Microcontroller, I have elaborated the design of the circuit for LCD interfacing with PIC microcontroller and to display ADC values on LCD. Basically I have divided this task into two different parts. In the first part I have performed the task for Circuit Designing of LCD with PIC where as in the second part contains the code for displaying ADC values on LCD.
  • You can download the Proteus simulation here by clicking on the button below.
  • Download .rar file, extract it and enjoy the package.

Proteus Design

  • That was the combined version of my all of the previous tutorials related to LCD Interfacing with the three different types of microcontrollers.
So, that is all from the tutorial LCD Interfacing with Microcontrollers. I hope you enjoyed this tutorial. If you face any sort of problem regarding anything, you can ask me freely anytime without even feeling any kind of hesitation. I will try my level best to solve your issues in some better way, if possible. I will explore different software e.g. Arduino, Keil uvision3, MATLAB, NI LabVIEW etc as well as the hardware based projects, in my later tutorials and will surely share them with all of guys as well. In my next tutorial I will explain about the different amazing tools of MATLAB e.g. command window, m.file, simulink and Graphical User Interface (GUI). So, till then, Take Care :)

How to Clear MATLAB Windows

Hello everyone! I hope you all will be absolutely fine and having fun. Today, I am going to share my knowledge with all of you guys about How to Clear MATLAB Windows. If the command window and workspace window are not clear they present a very complicated look and hence the user feel it difficult to write code on command window. Here, I have compiled a list of awesome MATLAB Image Processing Projects so must check them out to get some inspiration. :) So, for the ease of the user we need to clear the both window specially the command window because it contains the entire code for any of the task. Before going into the details of this tutorial, you should go through Introduction to MATLAB and Declaration of Variables in MATLAB for the better understanding of this tutorial. If we want to avoid the complications while writing the code on command window we must need to clear the both command window as well as the workspace window. If you don't wanna work on Command Windows then you should have a look at How to Create m File in MATLAB.  Anyways, in today's tutorial we are gonna have a look at matlab clear command window and its quite easy but I must say its quite handy, especially when you are working on some complex MATLAB Project.. So, now let's get started with today's tutorial and have a look at How to Clear MATLAB Windows:

How to Clear MATLAB Windows ???

In the tutorial, Clearing MATLAB Windows I will show that which commands are required to use to clear the command window and workspace window In order to avoid the complications for the user while writing the source code on the command window.
  • The commands for clearing the command window and workspace window are shown below.
  1. clear all (used to clear the workspace window)
  2. clc (used to clear the entire command window)
  • The command window with some of the commands written on it is shown in the figure below.
  • The workspace window having some of the variables is shown in the figure below.
Clearing both the Windows
  • First of all I will show you that how to clear the workspace window.
  • Go to the command window and write the command clear all and press
  • All of the above steps are shown in the figure below.
  • You will see that all the variables from the workspace window has been removed.
  • The cleared workspace window is shown in the figure below.
  • Now go to the command window and write the command clc on it.
  • The command written on the command window is shown in the figure below.
  • If you press Enter after writing the command show in the figure above, on the command, you will see that the command window has be cleared.
  • The empty command window is shown in the figure below.
  • So, by clearing both of these window a user can easily make an algorithm without any complication.
  • You should also have a look at this video tutorial as well:
That is all from the tutorial, Clearing Command Window and Workspace in MATLAB. I hope you enjoyed this tutorial. If you face any sort of problem in clear command window matlab, you can ask me in comments anytime without even feeling any kind of hesitation. I will try my level best to solve your issues in a better way, if possible. In my next tutorial I will explain you that how to Calculate the Values of the Trigonometric Functions in MATLAB. I will explore MATLAB further in my later tutorials and will share all of them with all of you as well. So, till then, Take Care :)

Creating First Program with myRIO

Hello everyone! I hope you all will be absolutely fine and having fun. Today, I am going to share my knowledge about Creating First Program with myRIO. Before doing anything on NI myRIO you must know that how to configure this device. So, before going into the details of this tutorial I would like to suggest you to must visit Getting Started with myRIO and How to Configure myRIO on WiFi for the better understanding of this tutorial. NI myRIO is an amazing processing tool that has a very high processing speed as compared to other microcontroller e.g. Arduino, raspberry pi, gellilio etc. So, it can be used for the real time projects where there is need to respond very quickly according to the assigned tasks. NI myRIO was launched by National Instrument. It has different models. In this tutorial I am going to use NI myRIO. This module has a built-in Wifi as well as USB cable supported. The device has its own IP address which helps while configuring it. If we want tmo connect it over internet then the IP address changes to access the device online. It operates on 667MHz. It’s a fully secured device with a strong casing around the circuitry. There are on board four LED lights on NI myRIO for the configuration test, whether the device is properly attached to the computer or not.

Creating First Program with myRIO

Here, in the tutorial Creating First Program with myRIO, I will tell you the step by step procedure for creating your first program using NI myRIO. The tutorials basically focuses on controlling an LED on Front Panel with the help of the on board button on the device.
  • You can download the complete Virtual Instrument (VI) for controlling LED using on board button here by clicking on the button below.
  • Download .rar file, extract it and enjoy the LabVIEW NI myRIO’s simulation.

Virtual Instrument (VI) Creation
  • First of all open the NI LabVIEW software from the softwares list.
  • The starting window of the software is shown in the figure below.
  • You can see a lot of options on the starting window having different individual functions.
  • Now, click on the encircled button Create Project.
  • As you press this button a new window will be appeared on your computer screen.
  • The new window with multiple options is shown in the figure below.
  • Go to the myRIO option as shown in the figure below.
  • While clicking on myRIO option, you can see the display on the right side will change by doing so.
  • Select the myRIO Project from the right portion of the window.
  • The both of the above steps are shown in the figure below.
  • Now, press the Next button as shown in the figure below.
  • Just after pressing this button you will be able to see a new window on your computer’s screen.
  • Select the Plugged into USB option and press Refresh button, your attached myRIO device will be detected in this way.
  • IP address of the used NI myRIO is encircled in the below figure as 22. 11.2.
  • The newly opened window with a bit detail is shown in the figure below.
  • The destination of the file which is being created is shown in the figure below.
  • Now, press the Finish button as highlighted in the figure shown below.
  • As you press this button a new window will again appear on your computer’s screen.
  • Go to the Medical Kit (172.22.11.2) as encircled in the figure below.
  • The new window appeared with all of the above steps is shown in the figure below.
  • Now go to the Medical Kit option and Right Click on it.
  • By doing so, you can see a lot of options here in the new mini window, go to New-> VI.
  • The above steps are shown in the figure given below.
  • As u press the VI two windows, Front Panel and Block Diagram will be appeared on your computer’s screen.
  • Both the windows are shown in the figure below.
  • Now, press Ctrl+t, both of the windows will be aligned in this way.
  • Now go to the Block Digram window and Right Click on it.
  • Go to the Functions-> Programming-> Structures here you can see different structures blocks.
  • Select the While Loop as encircled in the figure shown below.
  • Select this block and place it on the Block Diagram window as shown I the figure below.
  • Now, go to the Functions-> Programming-> Structures once again.
  • Select the Flat Sequence and place it around the While Loop.
  • Now put your cursor on the right side of the Flat Sequence and Right Click on it.
  • Go to the Add Frame After as shown in the figure below.
  • Now, Right Click on the Block Diagram window and go to Functions-> myRIO-> Device Management, here you can see the two different management blocks.
  • Select the encircled block Reset myRIO as shown in the figure below.
  • Place the encircled block Reset myRIO inside the second frame of the Flat Sequence.
  • Now go to the Functions-> myRIO and here you can see the different myRIO blocks.
  • Select the encircled block Button as shown in the figure below.
  • Place Button inside the While Loop.
  • As you place the button a new window will be appeared on your screen.
  • New window is shown in the figure below, just press Ok as shown below.
  • All of the above steps are shown in the figure below.
  • Now go the Functions-> Programming-> Structures, here you can see the different structure blocks.
  • Select the encircled block Case Structure as shown in the figure below.
  • Now go to the Functions-> myRIO, here you will see a lot of myRIO blocks.
  • Select the encircled block LED as shown in the figure below.
  • Select the encircled block and place it inside the Case Structure.
  • As you place the LED in the Case Structure a new window will be appeared on the screen, just press Ok.
  • The figure shown below exhibits the above steps.
  • Now to the First input terminal of the LED and Right Click on it and go to Create-> Constant.
  • By doing so, four inputs will be added to the LED.
  • The above step is shown in the figure below.
  • And change the condition from False to the True e.g. F to
  • The figure shown below exhibits the above step.
  • Now copy the entire code inside the Case Structure and go to the False Option.
  • Paste the copied code inside the False Option and change the condition from True to False i.e. form T to
  • The above step is shown in the figure below.
  • Now go to the bottom right of the While Loop and go to Create-> Control as shown in the figure below.
  • Now go to output terminal of the Button right click on it.
  • Go to the Create-> Indicator as shown in the figure below.
  • By doing so, a new indicator will be added on the block diagram window to show the state of the button i.e. whether it is pressed or not.
  • The above step is exhibited in the figure below.
  • Now run the program and the code will be started to upload on the NI myRIO.
  • The uploading in process is shown in the figure below.
 
  • The Front Panel is shown in the figure below.
  • Now if you press the button on the myRIO the Green LED on the Front Panel will be turned on.
  • The figure shown below exhibits the above step.
  • The ON state of the LED shows that the button on the myRIO is pressed.
So, that is all from the tutorial Creating First Program with myRIO. I hope you enjoyed this first project with myRIO. You should also have a look at these LabView Projects. If you find any sort of problem, you can ask in comments anytime without even feeling any kind of hesitation. I will try my level best to solve your issues in a better way, if possible. In my next tutorial I will elaborate that how to control the servo motor using NI LabVIEW and NI myRIO. I will further explore NI LabVIEW and NI myRIO in my later tutorials. So, till then, Take Care :)

How to Create m File in MATLAB

Hello everyone! I hope you all will be absolutely fine and having fun. Today, I am going to share my knowledge about How to Create m File in MATLAB. It is also known as New Script or Editor in the MATLAB. It's an amazing MATLAB tool. We can write the complete source code on editor. If we want to visualize the result of the particular statement we should not put a semicolon after that statement in MATLAB. Before going into the details of this tutorial, you must first have a look at Introduction to MATLAB and if you don't know about MATLAB variables then you must read Declaration of Variables in MATLAB. By doing this and by pressing the Run (Green Color) button at the top of the editor we will be able to see the result on the command window. In other words, we have to write the entire source code in the editor and to run the program and the desired results will be displayed on the command window. It is easy to do so as compared to write and manipulate every single statement on command window.

How to Create m File in MATLAB ???

Here, in the tutorial How to Create m File in MATLAB, I will show you the step by step procedure to create an m file in MATLAB first and then to observe the desired results on command window.
  • First of all you need to open your MATLAB software.
  • Go to the top left corner of the front window of the MATLAB and click on New Script.
  • The above steps are shown in the figure below.
  • A new window will be appeared on your screen right after clicking on the New Script.
  • The second window appeared on the screen is shown in the figure below and it is also known as an Editor.
  • A very simple code written on the editor by declaring three different kinds of variables and their manipulation is shown in the figure below.
  • Now, if you want to observe the result on the command window you have to do two things.
  • The first thing is to remove the semicolon at the end of the statement as shown in the figure above.
  • And the second thing is to press Run button encircled in the figure shown above.
  • After following all of the above steps you will be able to visualize the results on the command window of the amazing software i.e. MATLAB.
  • The result observed on the command window is shown in the figure below.
  • You can see the result is obtained in the form of an equation.
  • That was the detailed discussion on Creating m.file in MATLAB.
So, that is all from the tutorial Creating m.file in MATLAB. I hope you enjoyed this tutorial. If you face any sort of problem you can ask me in comments anytime without even feeling any kind of hesitation. I will try my level best to solve your issues in a better way, if possible. In my next tutorial I will explain you that how to Calculate the Values of the Trigonometric Functions in MATLAB. I will explore MATLAB further in my later tutorials and will share all of them with all of you as well. So, till then, Take Care :)

DC Motor Projects

Hello everyone! I hope you all will be absolutely fine and having fun. Today, I am going to share a list of tutorials on DC Motor Projects using different software e.g. Arduino, Matlab and NI LabVIEW. I have already shared these tutorials but they are posted randomly. So, today I thought that I should combine all those tutorials into a single one. So I am going to share the links of all of those tutorials in this tutorial so that it may be helpful for engineering students or anyone who wants to visit. This tutorial will help you to visit all of my tutorials related to DC motor control. The links of all the tutorials will be given and you will be able to download the desired tutorial from the corresponding link. I will make separate sections for each software to control DC motor. In each section all the possible controls of DC motor will be given in detail. If you have any sort of problem, you can ask in comments. I will try my level best to solve your issues. In today's tutorial, I have simply combined all the DC Motor Projects posted on our blog. I will update this list in future. So, let's get started with DC Motor Projects:

DC Motor Direction Control - DC Motor Projects

In this section of DC Motor Projects, I will provide you the list of the tutorials in which I have already controlled the direction of the DC motor using three different software e.g. Arduino, Matlab and NI LabVIEW. I have used the same hardware and Arduino source code in all of these tutorials. In case of Matlab and NI LabVIEW I have sent commands through the serial monitor towards Arduino and hence the whole system works. So, let's get started with these DC Motor Projects:
1- DC Motor Direction Control using Arduino
In the tutorial DC Motor Direction Control using Arduino, I have interfaced a DC motor with Arduino UNO board to control its clockwise and counter clockwise direction. I have used a motor controller named as H-Bridge to control the direction of DC motor. It can simultaneously control two DC motors. The algorithm was very simple. Commands for clockwise and counter clockwise rotation are sent through the serial monitor of Arduino software. Its one of the basic DC Motor Projects. These commands are then passed to the motor controller and then it decides the direction of rotation of DC motor after manipulating the Arduino commands. Direction of DC motor can be reversed by simply changing the polarity so L298 controls the direction of the DC motor by continuously making its pins low, high and vice versa.
  • I have posted a detailed tutorial on DC Motor Direction Control using Arduino.
  • You can read that tutorial and download the complete simulation & code by clicking the below button:

Download DC Motor Direction Control Arduino Source Code

2- DC Motor Direction Control using Matlab
In this DC Motor Project, I have done the DC Motor Direction Control in Matlab, I have created a simple Graphical User interface (GUI) in Matlab having three different buttons for controlling the clockwise, counter clockwise direction of the Dc motor and to stop the DC motor as well. Two more buttons are also there on the GUI for opening and closing the serial port. As we press any of the buttons, corresponding command is sent through the serial port from Matlab to Arduino and then Arduino transfers those commands to the H Bridge and hence the entire process gets completed. Pressing the Open Serial Port button, serial port will be opened and we will be able to communicate with the Arduino using serial communication and at the end we must close the serial port in order to avoid the exchange of unnecessary commands being sent through the serial port.
  • You can download the complete simulation here.
  • Download .rar file, extract it and start playing with the simulation. I hope you have enjoyed this DC Motor Project.

Download DC Motor Direction Control Matlab Simulation

3- DC Motor Direction Control using NI LabVIEW
In the tutorial DC Motor Direction Control in NI LabVIEW, I have controlled the clockwise and counter clockwise direction of the DC motor using serial communication between NI LabVIEW and Arduino. Commands like C, S and are sent through NI LabVIEW towards Arduino for clockwise rotation of the DC motor, stop the DC motor and anti clockwise rotation of the same DC motor respectively. There are three different buttons on the front panel of NI LabVIEW. These buttons are used to send commands C, S and from NI LabVIEW to Arduino using Serial communication.
  • You can download the complete simulation here.
  • Download .rar file, extract it and start playing with the simulation.

Download DC Motor Direction Control LabVIEW Simulation

4- DC Motor Direction Control with Arduino in Proteus
In the tutorial, DC Motor Direction Control with Arduino in Proteus, I have designed a complete simulation in Proteus, which will help you in understanding the controlling of DC motor. I have designed DC Motor Drive Circuit in Proteus ISIS. for the DC Motor Direction Control. I have provided the complete simulation and the source code for DC Motor Direction Control in Proteus but I would recommend you to design it on your own, it would be better for you. So, when you send the character C on serial terminal then the motor will rotate in clockwise direction and when the character sent through the serial terminal is A, the motor will rotate in counter clockwise direction and will stop when the character S is sent.
  • You can download the complete simulation here.
  • Download .rar file, extract it and start playing with the simulation.

Download DC Motor Direction Control Proteus Simulation

DC Motor Speed Control - DC Motor Projects

In this section of DC Motor Projects, I will provide you the list of the tutorials in which I have already controlled the speed of the DC motor using three different software e.g. Arduino, Matlab and NI LabVIEW. I have used the same hardware and Arduino source code in all of these tutorials. In case of Matlab and NI LabVIEW I have sent commands through the serial monitor towards Arduino and hence the whole system works. So, let's get started with these DC Motor Projects:
1- DC Motor Speed Control using Arduino
In DC Motor Speed Control using Arduino, I have actually used the concept of Pulse Width Modulation (PWM). For this purpose, I have used PWM pins EnA and EnB of L298 motor control to control the speed of the DC motor. PWM basically control the electronic pulse duration. When the state of the PWM pins of L298 motor controller is high, the output power will be supplied. I have controlled the speed of the DC motor by turning applied voltage on and off. Duty cycle is the main factor while controlling the speed of the DC motor. When the duty cycle is long i.e signal is power is supplied for a long time, Dc motor will rotate at fast speed and vice versa. Usually the PWM duty cycle is less than 90%. I have also printed the executed commands on LCD for this project.
  • You can download the complete simulation here.
  • Download .rar file, extract it and start playing with the simulation.

Download DC Motor Speed Control Arduino Source Code

Note:

2- DC Motor Speed Control in Matlab
In DC Motor Speed Control in Matlab, I have also created a GUI in Matlab having two extra buttons as compared to the GUI of DCMotor Direction Control in Matlab. One for continuously accelerating the speed of the DC motor and the other for continuously deaccelerating the speed of the same motor. As we press any button, corresponding command will be sent through the serial port from Matlab to Arduino using serial communication. The logic created is pretty simple, the speed of the motor will accelerate continuously as many time we press the button and if the maximum speed is reached, motor maintains the same speed even we continue to enhance its speed. Same procedure will be followed to reduce the speed of the DC motor.
  • You can download the complete simulation here.
  • Download .rar file, extract it and start playing with the simulation.

Download DC Motor Speed Control Matlab Simulation

3- DC Motor Speed Control using NI LabVIEW
In DC Motor Speed Control in NI LabVIEW, I have have placed five different buttons on the front panel to control the direction as well as the speed of the DC motor. By pressing the Accelerate button again and again speed of the DC motor will increase in proportion to the number of times the buttons is pressed. Similarly, by pressing Deaccelerate button again and again the speed of the DC motor will decrease in proportion to the number of times the button is pressed. First of all you need to press the Start button in order to start the serial communication between NI LabVIEW and Arduino. After pressing it you will be able to send the commands serially from NI LabVIEW towards Arduino.
  • You can download the complete simulation here.
  • Download .rar file, extract it and start playing with the simulation.

Download DC Motor Speed Control LabVIEW Simulation

4- DC Motor Speed Control with Arduino in Proteus
In the tutorial DC Motor Speed Control using Arduino in Proteus, I have controlled both the direction as well as the speed of the DC motor. For the direction control of DC motor the functionality remains the same as it was in DC Motor Direction Control with Arduino in Proteus but for the speed control, I have placed an Light Dependent Resistor (LDR) sensor in the simulation and depending on the value of the LDR sensor the speed DC motor will either increase or decrease.
  • You can download the complete simulation here.
  • Download .rar file, extract it and start playing with the simulation.

Download DC Motor Speed Control Proteus Simultation

This is all from the tutorial DC Motor Projects. I hope you all enjoyed this tutorial. If you face any sort of problem you can ask me anytime without even feeling any kind of hesitation. I will try my level best to solve your issue in a better way, if possible. I will explore Arduino, Matlab and NI LabVIEW further in my later tutorials. Till then, Take care :)

Declaration of Variables in MATLAB

Hello everyone! I hope you all will be absolutely fine and having fun. In the tutorial Declaration of variables in MATLAB, I will elaborate you that how to declare different variables in MATLAB and how to manipulate those variables without assigning them with the values. Before going into the details of this tutorial you must go through Introduction to MATLAB, because understanding MATLAB first is better. This will help you in better understanding of this tutorial. Variable declaration is one of the most important and compulsory steps while writing the code to perform any task. Without the declaration of the variables we can not proceed further to perform our task properly. So, if we want to do the different tasks in a proper way we must need to declare the variable before doing anything in the code. Once the variables have been declared, we can proceed further to explore the desired task.

Declaration of Variables in MATLAB

Here, in the tutorial Declaration of variables in MATLAB, I will show you that how the variables can be declared in the MATLAB and how to manipulate them without assigning them with the values. The command syms is used to declare the different variables in the MATLAB.
  • Here, I will show you that what happens if you have not declared the variables.
  • The error is shown in the figure below, when you have not declared the variables.
  • I have written an equation having three different variables named as f,t and r without declaring these variables.
  • MATLAB has shown an error on the command window as undefined function or variable.
  • So the error shown in the above figure shows the desired results can not be obtained without declaring the variables first.
  • Now, I am going to declare all the variables first and will then manipulate them.
  • The declared variables are shown in the figure below.
  • Since I have declared all of the variables now which are being used in the equation.
  • So, now I am going to manipulate them and going to observe the results.
  • The result of the addition of the two variables, which is stored in the third variable, is shown in the figure below.
  • The above figure shows the result of the addition of the two different variables in the form of an equation.
  • The result has been obtained because all of the variables has been declared first, i.e. declaration of variables plays a very important role while writing an algorithm to perform any task either simple or complicated.
  • You can also see all of the process in the video given below:
So, that is all from the tutorial Declaration of Variables in MATLAB. I hope you enjoyed this tutorial. If you find any sort of problems you can ask me in comments without even feeling any kind of hesitation. I will try my level best to solve your issues in a better way, if possible. In my next tutorial I will explain you that how to create an m.file in MATLAB. I will further explore MATLAB in my later tutorials and will share all of them with you as well. So, till then, Take Care :)

Introduction to MATLAB

Hello everyone! I hope you all will be absolutely fine and having fun. In this tutorial, I am going to give you a detailed Introduction to MATLAB. I will explain in detail, step by step procedure of using MATLAB for the first time. First of all, I would like to tell you a bit about the MATLAB software. MATLAB basically works on matrices and it is an excellent software for different kinds of simulation based projects as well as hardware based projects and specially, it is good for the Engineering Projects. MATLAB can be used for the manipulation purpose in order to obtain the proper results. It is very easy to use this software and most of the students prefer to use this software for their projects. So, this shows that MATLAB is a user friendly software as well. MATLAB has a very wide range of applications. It can also be used for the real time projects. Robotics, image processing and medical related projects are its major applications. You should also have a look at How to Create GUI in MATLAB. So, let's get started with Introduction to MATLAB:

Introduction to MATLAB

So, in the Introduction to MATLAB, I will show you the step by step procedure about how to use the MATLAB software for the first time.
  • As you open the MATLAB software, a new window will be appeared on your screen.
  • The window is shown in the figure below.
  • The above window is the starting window which appears on the screen when you open the MATLAB.
  • After sometime, you will be able to see another window on the screen.
  • The second window is shown in the figure below.
Sections of MATLAB
There are six basic section of the MATLAB and understanding them is essential part of Introduction to MATLAB. The names of all of these sections are given below.
  • Current Folder
  • Command Window
  • Workspace
  • Command History
  • View or Change Directory
  • Help Section
Current Folder is the first section of the MATLAB’s front window at the left side of the window. It displays the files that has already been saved. You can open the files that are already saved somewhere in your PC or laptop.
  • The current folder section is shown in the figure below.
Command Window is the second section and is used to show the results of the entire source code. If we want to observe the results on the command window, we must not put a semicolon after the statement then. If there is a semicolon at the end of the statement, result of that statement will not be shown on the command window.
  • The command window section is shown in the figure below.
Workspace is the third section of the MATLAB’s front window which shows all the variables that are used while writing the complete algorithm.
  • Workspace section is shown in the figure below.
Command History is the fourth and the last section of the MATLAB’s front window. It shows all of the commands that have been used in the entire algorithm.
  • The command history section is shown in the figure below.
View or Change Directory helps us to view the directory or the complete destination of the file that is opened in the MATLAB. You can also open a new file by changing its directory.
  • Directory box is shown in the figure below.
Help Section is also an amazing tool of the MATLAB. It provides help regarding of the command or any other thing related to MATLAB. By typing the thing which is not clear, you will be able to find a lot of help.
  • The button to open the help section is shown in the figure below.
  • As you press this button a new named as help will be appeared on your screen to help you.
  • The help window is shown in the figure below.
  • So that was the brief discussion about how to getting started with the MATLAB.
So, that is all from the tutorial Introduction to MATLAB. I hope you have enjoyed this tutorial. If you find any sort of problem in introduction to matlab, you can ask in comments anytime without even feeling any kind of hesitation. I will try my level best to solve your issues in a better way, if possible. In my next tutorial I will elaborate the Declaration of Variables in MATLAB and how to manipulate them without assigning them with the values. Moreover, you should also have a look at How to Create m file in MATLAB. I will further explore MATLAB in my later tutorials. So, till then, Take Care :)
Syed Zain Nasir

I am Syed Zain Nasir, the founder of <a href=https://www.TheEngineeringProjects.com/>The Engineering Projects</a> (TEP). I am a programmer since 2009 before that I just search things, make small projects and now I am sharing my knowledge through this platform.I also work as a freelancer and did many projects related to programming and electrical circuitry. <a href=https://plus.google.com/+SyedZainNasir/>My Google Profile+</a>

Share
Published by
Syed Zain Nasir