Lab 1
Lab 1
2. FIGURE WINDOW:
The output of all the commands written on the command window or
executed by writing in M-file, whose output is a graph , appears on
the window. The user can create as many figure windows as the
system memory allows. A figure window is showing sine curve is
shown in figure.
3. EDITOR WINDOW:
This is where we can write, create, edit and save programs in a file.
The file is known as M-file. To select editor window, go to file and
then select M-file. The programmes written on the file are first
saved and then run to get the results. To save and run the
programme, go to debug and select save and run. The result appear
on the command window. The figure appear on the figure window.
A editor window is shown as in figure:
2.2 LANGUAGES:
MATLAB is a high-level language that includes matrix-based data
structures, its own internal data types, an extensive catalog of functions
and scripts, the ability to import and export to many types of data files,
object-oriented programming capabilities, and interfaces to external
technologies such as COM, Java, program written in C and Fortran, and
serial port devices.
2.3 INPUT-OUTPUT:
MATLAB takes input from the screen and rushes output to the screen
i.e. it supports interactive computation. It can read input files and write
output files.
2.3.1 Data Type: There is no need to declare a data to be real or
complex. When a real number is entered as a variable, MATLAB
automatically sets the variable to be real. Fundamental data type is
the array.
2.3.2 Dimension: Dimension state is not required in the MATLAB. It is
automatic.
3. ACCESSORIES
3.1 TOOLBOXES: MATLAB features a family of add-on-applicationspecific solutions called toolboxes. Very important to most users of
MATLAB, toolboxes allow you to learn and apply specialized
technology. Toolboxes are comprehensive collections of MATLAB
environment to solve particular classes of problems. Areas in which
toolboxes are available include signal processing, control systems,
neural networks, fuzzy logic, wavelets, simulation, and many others.
There are 78 toolboxes available. Thus we can say MATLAB basically
works as a platform and for solving a particular problem, concerned
toolbox is required. Few of the toolboxes are as follows:
Communication toolbox
Control system toolbox
Curve fitting toolbox
Data acquisition toolbox
Filter design toolbox
Fuzzy logic toolbox
Instrument control toolbox
Optimization toolbox
Statistics toolbox
Symbolic maths toolbox, etc.
3.2 SIMULINK: Simulink is a software package that enables you to
model, simulate, and analyze systems whose outputs change over
time. Such system are often referred to as dynamic systems.
Simulink can be used to explore the behavior of a wide range of
real- world dynamic systems, including electrical circuits, shock