“MATLAB EXPLORATION” (Place to visualize your thoughts) Presentation By Mr. ReddyPrasad Reddivari, Assistant Professor Department of Electrical and Electronics Engineering Sri Venkateshwara College of Engineering Bengaluru, Karnataka-562157 Tel: 9494747497 E-Mail: [email protected]. Website: www.reddyprasad.yolasite.com MATLAB/SIMULINK for Engineering applicatio
55
Embed
MATLAB/SIMULINK for Engineering Applications day 2:Introduction to simulink
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
“MATLAB EXPLORATION”
(Place to visualize your thoughts)Presentation By
Mr. ReddyPrasad Reddivari, Assistant Professor
Department of Electrical and Electronics EngineeringSri Venkateshwara College of Engineering
Know basics of MATLAB/Simulink– know how to solve simple problems
Know what MATLAB/Simulink is
Know how to get started with MATLAB/Simulink
Be able to explore MATLAB/Simulink on Be able to explore MATLAB/Simulink on your own !your own !
Introduction to MATLAB and Simulink
Contents
Built in functions
Getting Started Vectors and Matrices
Introduction
SimulinkModeling examples
MATLAB
SIMULINK
M–files : script and functions
IntroductionMATLAB – MATrix LABoratory
Initially developed by a lecturer in 1970’s to help students learn linear algebra. It was later marketed and further developed under MathWorks Inc. (founded in
1984) – www.mathworks.com Matlab is a software package which can be used to perform analysis and solve
mathematical and engineering problems. It has excellent programming features and graphics capability – easy to learn and
flexible. Available in many operating systems – Windows, Macintosh, Unix, DOS It has several tooboxes to solve specific problems.
Outline: What is Matlab? Matlab Screen Variables, array, matrix, indexing Operators (Arithmetic, relational, logical ) Display Facilities Flow Control Using of M-File Writing User Defined Functions plotting
What is Matlab? Matlab is basically a high level language
which has many specialized toolboxes for making things easier for us
How high?
Assembly
High Level Languages such as
C, Pascal etc.
Matlab
What are we interested in? Matlab is too broad for our purposes in this
course. The features we are going to require is
Matlab
CommandLinem-files
functions
mat-files
Command execution like DOS command window
Series of Matlab
commands
InputOutput
capability
Data storage
/ loading
Matlab Screen Command Window
type commands
Current Directory View folders and m-files
Workspace View program variables Double click on a variable to see it in the Array Editor
Command History view past commands save a whole session using diary
Variables No need for types. i.e.,
All variables are created with double precision unless specified and they are matrices.
After these statements, the variables are 1x1 matrices with double precision