Introduction to MATLAB, A Complete MATLAB Beginner’s Study Guide

MATLAB is a high-level language and communicating atmosphere for mathematical computation, visualization and programming. MATLAB stands for MATrix LABoratory and was invented by MathWorks. The vast availability of inbuilt functions allow you to find solutions faster, developing GUI easily as compared to spreadsheet or other programming languages.

Here CircuitsGallery presents a MATLAB basics course with common MATLAB basics questions. Series of these posts gives you an atmosphere of MATLAB online course.

Introduction to MATLAB, A Complete MATLAB Beginner's Study Guide

From 2004 onward there was a large increase in the MATLAB users across the world. One of the main reasons for this is nothing but the wide background support of MATLAB such as the users comes from different fields like Engineering, Science and Economics.

MATLAB is usually used in hypothetical and research institutions as well as industrial enterprises.

Applications of MATLAB cover signal processing and communications, image and video processing, control systems, test and measurement, computational finance, and computational biology.

MATLAB GUI Support

MATLAB contains GUIDE (GUI Development Environment) for graphically designing GUIs for applications. Integrated graph-plotting feature help us to draw accurate function graphs easily. This online tutorial explains basics of GUI and usage of tools.

Interfacing with Other Languages

MATLAB is compatible with other programming languages such as C, C++, and Java etc. It could call functions and subroutines written in other languages.
Libraries written in Perl, Java, ActiveX or .NET can be directly called from MATLAB.

CircuitsGallery MATLAB Online Training Course

CircuitsGallery MATLAB Online Training Course

By analyzing the importance of MATLAB for Electronics Engineers we would like to provide a MATLAB beginners guide online course for Engineering Students. In this course we will be discussing some basic MATLAB programs with their output.

Familiarization of the MATLAB interface, basic functions, tools etc. are also covered in this article. This is an essential guide for MATLAB beginners to get started with MATLAB, the Language of Mathematical Computing. This in no doubt will help to learn MATLAB online.

Practice each part of MATLAB tutorials each day along with your own examples. OK now let’s go to MATLAB beginners guide quick start.

1. MATLAB beginners guide, How to create your first MATLAB project?

Getting started with MATLAB GUI

This article covers MATLAB beginners tutorial GUI and preliminary guide to get started.
As we said MATLLAB is developed by MathWorks, USA and they improved its GUI with awsome look and feel.

This MATLAB introduction covers How to enter a Matrix in MATLAB, How to create .m file, Commenting and Uncommenting, Labeling, Editor Window and executing MATLAB codes. This could be an extreme basic guide to MATLAB

Please Read More: Getting started with MATLAB, How to create your first MATLAB project?

2. How to Plot a 2D function in MATLAB? Basic steps for MATLAB plotting

How to Plot a 2D function in MATLAB

Now let’s see some MATLAB basics commands with an example of 2D function plotting.

What is a two dimensional function? A 2D function has 2 variables running along 2 axis namely ‘X’ ad ‘Y’.

These variables are termed as dependent variable and independent variable.

For example y=sin x, where ‘x’ is independent variable and ‘y’ is dependent on ‘x’. 2D Plot in MATLAB is very easy with plot() library function.

All the steps for plotting a 2D function is given in the following article

Read Mode: How to plot a 2D function in MATLAB? Basic steps for MATLAB plotting

3. How to Draw (Plot) a Circle Using MATLAB?

How to Draw (Plot) a Circle Using MATLAB

This is a most common tricky question for MATLAB examinations.

The secret behind circle plot is that the transfer function of sin wave and cos wave gives circle on CRO.

Same principle is applied here. We are plotting sin x Vs cos x as 2D graph. This will yields circle output in MATLAB.

Detailed description and program codes given below link.

How to draw (plot) a circle using MATLAB?

4. MATLAB Code for Amplitude Modulation (AM) with Modulation Index

Amplitude Modulation in MATLAB

CircuitsGallery is a website intended for Electronics Engineers and hobbyists. When dealing with Electronics Engineering, Amplitude Modulation (AM) is a popular method of modulating signals.

While studying AM, most of the students like to draw their own AM signal. Drawing AM signal in MATLAB gives exact wave form with 100% accuracy.

I have explained the codes with modulation index so that you can view the extend of modulation by giving modulation index parameter.

This program is also a MATLAB beginners guide multiple plots since it draws output in a subplot manner.

For MATLAB code and output wave form visit the following link.

MATLAB code for Amplitude modulation (AM) with modulation index

5. MATLAB Code for Frequency Modulation (FM) with Modulation Index

Frequency Modulation in MATLAB

Frequency Modulation (FM) is also a widely used modulation technique in communication engineering as we discussed earlier. In FM the frequency of a carrier wave is changed according to message signal.

Plotting FM will provide better understanding of Frequency modulated signal. More over the parameter modulation index is also included in the program, which shows the outspreading of frequency modulation.

MATLAB program and output wave form, click the following link

MATLAB code for Frequency modulation (FM) with modulation index

6. Amplitude Shift Keying (ASK) Modulation Code in MATLAB

Amplitude Shift Keying (ASK) Modulation Code in MATLAB

Amplitude Shift Keying (ASK) is one of the basic types of digital modulation techniques. In ASK, amplitude of the analog carrier signal is relayed with respect to the binary information, keeping the phase and frequency fixed.

MATLAB ASK modulation logic is so simple, it multiplies both the analog carrier and digital signal then producing ASK signal.

Read More: Amplitude Shift Keying (ASK) Modulation Code in MATLAB

7. Phase Shift Keying (PSK) Modulation Code in MATLAB

Phase Shift Keying (PSK) Modulation Code in MATLAB

So far we are dealing with different modulations in communication engineering with MATLAB.

Phase Shift Keying (PSK) is a significant method of modulation among them. In this way we are transmitting a Digital Signal by mixing with an analog carrier.

The phase of analog carrier is changed according to digital message signal.

With the help of a phase detector we can reproduce the message at the receiving end.

MATLAB plotting of PSK offers good realization of the wave form and process of encoding.

More at: Phase Shift Keying (PSK) Modulation Code in MATLAB

8. How to Plot Concentric Circles in MATLAB: Getting started with MATLAB

How to Plot Concentric Circles in MATLAB

We have already covered plotting of circle, but how to plot concentric circles in MATLAB? This is a tricky question while dealing with MALAB programming.

Drawing of concentric circles is done by plotting Sine wave Vs Cosine wave with particular amplitudes.

For example [sin x, cos x]; [2sin x, 2 cos x] so on and so far.

From this example we may know that amplitude determines the radius of circle.

MATLAB codes and output circles are shown in the following link.

More: How to plot concentric circles in MATLAB: Getting started with MATLAB

9. Code for PWM (Pulse Width Modulation) generation in MATLAB

PWM (Pulse Width Modulation) generation in MATLAB

Pulse Width Modulation (PWM) has wide range of applications in Electronics Engineering like SMPS, Inverter and Communication etc.

CircuitsGallery had discussed many times about Pulse Width Modulation and some of its application. Readers who missed those articles, I recommend to take a look in to the following tutorials.

In PWM, widths of the pulses are changed according to the amplitude of Audio Frequency (AF) message signal.

The logic of MATLAB PWM code is simple to understand; here we are comparing an Analog sine wave with a Saw tooth wave inside a loop.

According to this comparison a variable receives values 0 and 1, hence we obtain PWM signal.

For the program code and output wave form read the following:

Code for PWM (Pulse Width Modulation) generation in MATLAB

* * * * * * *

I hope this MATLAB beginners guide quick reference helped you to study MATLAB basics programming. This could be a MATLAB assignment help for engineering students also.

Please let me know if you have any doubts regarding MATLAB programs for beginners via the comment box below.

2 thoughts on “Introduction to MATLAB, A Complete MATLAB Beginner’s Study Guide

Leave a Reply

Your email address will not be published. Required fields are marked *