summer training matlab
DESCRIPTION
CETPA INFOTECH PVT LTD is one of the IT education and training service provider brands of India that is preferably working in 3 most important domains. It includes IT Training services, software and embedded product development and consulting services.TRANSCRIPT
![Page 1: Summer Training MATLAB](https://reader033.vdocuments.us/reader033/viewer/2022052703/568c33aa1a28ab02358d8f7a/html5/thumbnails/1.jpg)
![Page 2: Summer Training MATLAB](https://reader033.vdocuments.us/reader033/viewer/2022052703/568c33aa1a28ab02358d8f7a/html5/thumbnails/2.jpg)
Introduction to
MATLAB
![Page 3: Summer Training MATLAB](https://reader033.vdocuments.us/reader033/viewer/2022052703/568c33aa1a28ab02358d8f7a/html5/thumbnails/3.jpg)
BACKGROUND MATLAB, which stands for MATrix LABoratory, is a
software package developed by MathWorks. This software package was used initially for numerical
computations as well as some symbolic manipulation. The collection of programs (primarily in Fortran) that
eventually became MATLAB were developed in the late1970s by Cleve Moler, who used them in a numericalanalysis course he was teaching at the University of NewMexico.
Jack Little and Steve Bangert later reprogrammed theseroutines in C, and added M-files, toolboxes, and morepowerful graphics (original versions created plots byprinting asterisks on the screen).
Moler, Little, and Bangert founded MathWorks inCalifornia in 1984.
If we get a job in a particular field of engineering, university or industry we will mostly used specializedsoftware.
![Page 4: Summer Training MATLAB](https://reader033.vdocuments.us/reader033/viewer/2022052703/568c33aa1a28ab02358d8f7a/html5/thumbnails/4.jpg)
Why MATLAB ? Ease of Use
User Friendly
Platform Independence
Predefined Functions
Device-Independent Plotting
Graphical User interface
MATLAB Compiler
Why not MATLAB Has some drawbacks:
Slow for some kinds of processes
Cost effective
![Page 5: Summer Training MATLAB](https://reader033.vdocuments.us/reader033/viewer/2022052703/568c33aa1a28ab02358d8f7a/html5/thumbnails/5.jpg)
Introduction What Is MATLAB?
MATLAB (MATrix LABoratory)
Flexibility to solve a large number of problems
High-level technical computing language and interactive environment
high-performance language for technical computing
Good Tool for visualization Computation and programming is an
easy-to-use environment Has computational and graphical tools Handles real and complex
scalars, vectors and matrices Script Language is relatively easy to learn
![Page 6: Summer Training MATLAB](https://reader033.vdocuments.us/reader033/viewer/2022052703/568c33aa1a28ab02358d8f7a/html5/thumbnails/6.jpg)
Introduction Typical uses include:
Simple calculation
Plotting and analyzing mathematical
relationships (2D and 3D)
List and Matrix operations
Writing script files (a type of Programming)
Symbolic manipulation of Equations
Mathematical Computations
Algorithm development
Modelling, simulation, and prototyping
Data analysis, exploration, and visualization
Scientific and engineering graphics
Application development, including Graphical User Interface building
![Page 7: Summer Training MATLAB](https://reader033.vdocuments.us/reader033/viewer/2022052703/568c33aa1a28ab02358d8f7a/html5/thumbnails/7.jpg)
MATLAB Worldwide Aerospace and Defense Automotive Biotech, Medical, and
Pharmaceutical Chemical and Petroleum Communications Computers and Office Equipment Education Electronics and Semiconductor Financial Services Industrial Equipment and
Machinery Instrumentation Utilities and Energy
![Page 8: Summer Training MATLAB](https://reader033.vdocuments.us/reader033/viewer/2022052703/568c33aa1a28ab02358d8f7a/html5/thumbnails/8.jpg)
Introduction to some basic matrix operators and other tools
• Some important matrix operations
• Introduction to some operators
• Introduction to M-file editor
• Editing and debugging M-files
• Basic plotting functions
• Creating plot
• Editing plot
8
![Page 9: Summer Training MATLAB](https://reader033.vdocuments.us/reader033/viewer/2022052703/568c33aa1a28ab02358d8f7a/html5/thumbnails/9.jpg)
Basic Matlab Operations
>> % This is a comment, it starts with a “%”
>> y = 5*3 + 2^2; % simple arithmetic
>> x = [1 2 4 5 6]; % create the vector “x”
>> x1 = x.^2; % square each element in x
>> E = sum(abs(x).^2); % Calculate signal energy
>> P = E/length(x); % Calculate av signal power
>> x2 = x(1:3); % Select first 3 elements in x
![Page 10: Summer Training MATLAB](https://reader033.vdocuments.us/reader033/viewer/2022052703/568c33aa1a28ab02358d8f7a/html5/thumbnails/10.jpg)
2D & 3D Graphics
![Page 11: Summer Training MATLAB](https://reader033.vdocuments.us/reader033/viewer/2022052703/568c33aa1a28ab02358d8f7a/html5/thumbnails/11.jpg)
Introduction The MATLAB environment provides a wide variety of
techniques to display data graphically.
Interactive tools enable you to manipulate graphs to achieve results that reveal the most information about your data.
You can also annotate and print graphs for presentations, or export graphs to standard graphics formats for presentation in Web browsers or other media.
11
![Page 12: Summer Training MATLAB](https://reader033.vdocuments.us/reader033/viewer/2022052703/568c33aa1a28ab02358d8f7a/html5/thumbnails/12.jpg)
Creating a Graph The type of graph you choose to create depends on the nature of
your data and what you want to reveal about the data.
You can choose from many predefined graph types, such as line, bar, histogram, and pie graphs as well as 3-D graphs, such as surfaces, slice planes, and streamlines.
There are two basic ways to create MATLAB graphs:
Use the command interface to enter commands in the Command Window or create
plotting programs.
Use plotting tools to create graphs interactively.
![Page 13: Summer Training MATLAB](https://reader033.vdocuments.us/reader033/viewer/2022052703/568c33aa1a28ab02358d8f7a/html5/thumbnails/13.jpg)
Types of MATLAB Plots 2D
2d graphs
![Page 14: Summer Training MATLAB](https://reader033.vdocuments.us/reader033/viewer/2022052703/568c33aa1a28ab02358d8f7a/html5/thumbnails/14.jpg)
Types of MATLAB Plots 3D
3d Graphs
![Page 15: Summer Training MATLAB](https://reader033.vdocuments.us/reader033/viewer/2022052703/568c33aa1a28ab02358d8f7a/html5/thumbnails/15.jpg)
NASA ELECTRON BEAM WELDER
![Page 16: Summer Training MATLAB](https://reader033.vdocuments.us/reader033/viewer/2022052703/568c33aa1a28ab02358d8f7a/html5/thumbnails/16.jpg)
![Page 17: Summer Training MATLAB](https://reader033.vdocuments.us/reader033/viewer/2022052703/568c33aa1a28ab02358d8f7a/html5/thumbnails/17.jpg)
![Page 18: Summer Training MATLAB](https://reader033.vdocuments.us/reader033/viewer/2022052703/568c33aa1a28ab02358d8f7a/html5/thumbnails/18.jpg)
![Page 19: Summer Training MATLAB](https://reader033.vdocuments.us/reader033/viewer/2022052703/568c33aa1a28ab02358d8f7a/html5/thumbnails/19.jpg)
Matlab Simulink
![Page 20: Summer Training MATLAB](https://reader033.vdocuments.us/reader033/viewer/2022052703/568c33aa1a28ab02358d8f7a/html5/thumbnails/20.jpg)
SimulinkIntroduction
Simulink software models, simulates, and analyzesdynamic systems.
It enables us to pose a question about a system, modelthe system, and see what happens.
With Simulink, we can easily build models fromscratch, or modify existing models to meet your needs.
Simulink supports linear and nonlinearsystems, modeled in continuous time, sampled time, or ahybrid of the two.
Systems can also be multirate having different parts thatare sampled or updated at different rates.
![Page 21: Summer Training MATLAB](https://reader033.vdocuments.us/reader033/viewer/2022052703/568c33aa1a28ab02358d8f7a/html5/thumbnails/21.jpg)
Simulink Thousands of scientists and engineers around the world use
Simulink to model and solve real problems in a variety of industries, including:
Aerospace and Defense
Automotive
Communications
Electronics and Signal Processing
Medical Instrumentation
![Page 22: Summer Training MATLAB](https://reader033.vdocuments.us/reader033/viewer/2022052703/568c33aa1a28ab02358d8f7a/html5/thumbnails/22.jpg)
Starting and Running Simulink Type the following at the Matlab
command prompt
>> simulink
The Simulink library should appear
Click File-New to create a new workspace, and drag and drop objects from the library onto the workspace.
Selecting Simulation-Start from the pull down menu will run the dynamic simulation. Click on the blocks to view the data or alter the run-time parameters
![Page 23: Summer Training MATLAB](https://reader033.vdocuments.us/reader033/viewer/2022052703/568c33aa1a28ab02358d8f7a/html5/thumbnails/23.jpg)
Signals and Systems in Simulink
Two main sets of libraries for building simple simulations in Simulink:
• Signals: Sources and Sinks
• Systems: Continuous and Discrete
![Page 24: Summer Training MATLAB](https://reader033.vdocuments.us/reader033/viewer/2022052703/568c33aa1a28ab02358d8f7a/html5/thumbnails/24.jpg)
Basic Simulink Example Copy “sine wave” source and “scope”
sink onto a new Simulink work space and connect.
Set sine wave parameters modify to 2 rad/sec
Run the simulation:
Simulation - Start
Open the scope and leave open while you change parameters (sin or simulation parameters) and re-run
Many other Simulink demos …
![Page 25: Summer Training MATLAB](https://reader033.vdocuments.us/reader033/viewer/2022052703/568c33aa1a28ab02358d8f7a/html5/thumbnails/25.jpg)
Modeling Jaguar
![Page 26: Summer Training MATLAB](https://reader033.vdocuments.us/reader033/viewer/2022052703/568c33aa1a28ab02358d8f7a/html5/thumbnails/26.jpg)
![Page 27: Summer Training MATLAB](https://reader033.vdocuments.us/reader033/viewer/2022052703/568c33aa1a28ab02358d8f7a/html5/thumbnails/27.jpg)
![Page 28: Summer Training MATLAB](https://reader033.vdocuments.us/reader033/viewer/2022052703/568c33aa1a28ab02358d8f7a/html5/thumbnails/28.jpg)
Communication Toolbox
![Page 29: Summer Training MATLAB](https://reader033.vdocuments.us/reader033/viewer/2022052703/568c33aa1a28ab02358d8f7a/html5/thumbnails/29.jpg)
Presentation Outline
Section Overview Expected background from the Users Studying Components of the Communication System BER : As performance evaluation Technique Scatter Plot Simulating a Communication Link….Examples BERTool : A Bit Error Rate GUI
![Page 30: Summer Training MATLAB](https://reader033.vdocuments.us/reader033/viewer/2022052703/568c33aa1a28ab02358d8f7a/html5/thumbnails/30.jpg)
Studying Components of Communication system
We will See for two Types:
Analog Communications
Digital Communications
![Page 31: Summer Training MATLAB](https://reader033.vdocuments.us/reader033/viewer/2022052703/568c33aa1a28ab02358d8f7a/html5/thumbnails/31.jpg)
Analog Communication System
Signal
SourceModulation
De-
Modulation
This may be any analog signal such as Sinewave, Cosine Wave, Triangle Wave………………..
![Page 32: Summer Training MATLAB](https://reader033.vdocuments.us/reader033/viewer/2022052703/568c33aa1a28ab02358d8f7a/html5/thumbnails/32.jpg)
Analog Modulation/Demodulation Functions
ammod Amplitude modulation
amdemod Amplitude demodulation
fmmod Frequency modulation
fmdemod Frequency demodulation
pmmod Phase modulation
pmdemod Phase demodulation
ssbmod Single sideband amplitude Mod
ssbdemod Single sideband amplitude DeMod
![Page 33: Summer Training MATLAB](https://reader033.vdocuments.us/reader033/viewer/2022052703/568c33aa1a28ab02358d8f7a/html5/thumbnails/33.jpg)
Image Processing Toolbox
![Page 34: Summer Training MATLAB](https://reader033.vdocuments.us/reader033/viewer/2022052703/568c33aa1a28ab02358d8f7a/html5/thumbnails/34.jpg)
Images in MATLAB• Binary images : {0,1}
• Intensity images : [0,1] or uint8, double etc.
• RGB images : m-by-n-by-3
• Indexed images : m-by-3 color map
![Page 35: Summer Training MATLAB](https://reader033.vdocuments.us/reader033/viewer/2022052703/568c33aa1a28ab02358d8f7a/html5/thumbnails/35.jpg)
Images and Matrices Accesing image elements
(row, column)
>> A(2,1)
ans = 4
: can be used to extract a wholecolumn or row
>> A(:,2)
ans =2
5
8
or a part of a column or row
>> A(1:2,2)
ans =2
X
Y
A = 1 2 34 5 67 8 9
![Page 36: Summer Training MATLAB](https://reader033.vdocuments.us/reader033/viewer/2022052703/568c33aa1a28ab02358d8f7a/html5/thumbnails/36.jpg)
Flow Control Flow control in MATLAB
- for loops
for row=1:3
for col=1:3
if row==col
A(row, col)=1;
elseif abs(row-col)==1
A(row, col)=2;
else
A(row, col)=0;
end
end
end
A =
1 2 02 1 20 2 1
![Page 37: Summer Training MATLAB](https://reader033.vdocuments.us/reader033/viewer/2022052703/568c33aa1a28ab02358d8f7a/html5/thumbnails/37.jpg)
THANK YOU