Академический Документы
Профессиональный Документы
Культура Документы
DHAs
ABHISHEK
165001
PHYSICS (HONOURS)
ANS.1 The name MATLAB stands for MATRIX LABORATORY. MATLAB was written originally
to provide easy access to matrix software developed by the LINPACK (linear system package)
and EISPACK (Eigen system package) projects. MATLAB is a high-performance language for
technical computing. It integrates computation, visualization, and programming environment.
Furthermore, MATLAB is a modern programming language environment: it has sophisticated
data structures, contains built-in editing and debugging tools, and supports object-oriented
programming. These factors make MATLAB an excellent tool for teaching and research.
MATLAB has many advantages compared to conventional computer languages (e.g., C,
FORTRAN) for solving technical problems. MATLAB is an interactive system whose basic data
element is an array that does not require dimensioning. The software package has been
commercially available since 1984 and is now considered as a standard tool at most universities
and industries worldwide. It has powerful built-in routines that enable a very wide variety of
computations. It also has easy to use graphics commands that make the visualization of results
immediately available. Specific applications are collected in packages referred to as toolbox.
There are toolboxes for signal processing, symbolic computation, control theory, simulation,
optimization, and several other fields of applied science and engineering. MATLAB is used in
every facet of computational mathematics.
• Linear Algebra
• Algebraic Equations
• Non-linear Functions
• Statistics
• Data Analysis
• Numerical Calculations
• Integration
• Transforms
• Curve Fitting
• It provides built-in graphics for visualizing data and tools for creating custom plots. MATLAB
programming interface gives development tools for improving code quality maintainability and
maximizing performance.
ANS.2 The development of MATLAB began at the end of 1970s. The work on MATLAB was
initiated by Cleve Moler, who chaired the computer science department at the University of
New Mexico during that time. Cleve Moler started developing MATLAB with the aim of
providing his students with an access to EISPACK and LINPACK without having any need to go
for learning Fortran.
The language, however, soon became popular among a large number of university, specifically
in the field of applied mathematics, because of its high usability in the said area. At the time of
the visit that was made by Moler to Stanford University in the 1983, Jack Little, who was an
engineer, came in contact with the MATLAB programming language.
After realising the fact that MATLAB had an impressive commercial potential, Jack Little went
on for joining hands with Steve Bangert and Moler. These three then started rewriting MATLAB
in C Language. This was also accompanied with the formation of MathWorks in the year 1984 to
further enhance the development of MATLAB.
ACKPAC is the name that was given to the rewritten libraries of MATLAB. LAPACK was created
in the year 2000. This was a new set of libraries which were used by the newer and modified
MATLAB so as to incorporate the feature of matrix manipulation.
The early uses of MATLAB were specifically made by the practitioners as well as researchers
that were associated with the field of control engineering, which was a speciality of Jack Little.
The language, because of the high profile features, was quick to become popular in a variety of
other domains as well.
The common uses of this language are now made in the field of education, especially in the
teaching of numerical analysis, and linear algebra. Apart from that it is also deployed by the
scientists who work in the area of image processing.
ANS.3 An m-file, or script file, is a simple text file where you can place MATLAB commands.
When the file is run, MATLAB reads the commands and executes them exactly as it would if
you had typed each command sequentially at the MATLAB prompt. All m-file names must end
with the extension '.m' (e.g. test.m). If you create a new m-file with the same name as an
existing m-file, MATLAB will choose the one which appears first in the path order (type help
path in the command window for more information). To make life easier, choose a name for
your m-file which doesn't already exist. To see if a filename.m already exists, type help
filename at the MATLAB prompt.
MATLAB allows writing two kinds of program files −
Scripts − script files are program files with .m extension. In these files, you write series
of commands, which you want to execute together. Scripts do not accept inputs and do
not return any outputs. They operate on data in the workspace.
Functions − functions files are also program files with .m extension. Functions can
accept inputs and return outputs. Internal variables are local to the function.
ANS.7
Sr. no. command purpose
ANS.9
Sr.no. command purpose
ANS.10