Top 20 Matlab Interview Questions & Answers: 1) Explain What Is Matlab? Where Matlab Can Be Applicable?
Top 20 Matlab Interview Questions & Answers: 1) Explain What Is Matlab? Where Matlab Can Be Applicable?
com/
• MatLab Language
• MatLab working environment
• Handle Graphics
• MatLab function library
• MatLab Application Program Interface (API)
MatLab API is a library that enables you to write Fortran and C programs that interact with
MatLab. It contains the facilities for calling routines from MatLab, for reading and writing Mat
1/5
https://career.guru99.com/
• While Loop
• For Loop
• Nested Loops
• Arithmetic Operators
• Relational Operators
• Logical Operators
• Bitwise Operations
• Set Operations
Yes, it is possible in MatLab to handle multi-dimensional arrays. Matlab’s internal data structure
is limited to a two-dimensional matrix. But to handle multi-dimensional arrays in Matlab, you can
create your own functions in Matlab language.
2/5
https://career.guru99.com/
The sign convention used in MatLab’s fft routines are defined as sum(x(i)*exp (-j*i*k/N)) and not
sum (x(i)exp(j*i*k/N)). The first version is used by engineers, and the second is used by
mathematician.
9) What are the four basic functions to solve Ordinary Differential Equations (ODE)?
The four basic functions that MatLab has to solve ODE’s are
• Quad
• Quad8
• ODE23
• ODE45
A polynomial in MatLab is denoted by a vector. To create a polynomial in MatLab enter each co-
efficient of the polynomial into the vector in descending order
11) What is the type of program files that MatLab allows to write?
• Scripts: It is a file with .m extension. In these files, it writes series of command that you want
to execute together. It does not accept inputs and do not return any outputs
• Functions: They are also files with .m extension. Functions can accept inputs and return
outputs.
To modify the MatLab Path use the PathTool GUI. Also, you can use add path directories from
the command line and add the path to rc to write the current path back to ‘pathdef.m.' In the
case if you don’t have permission to write for ‘pathdef.m’ then pathrc can be written into a
different file, you can execute from your ‘startup.m.'
MatLab handles naturally simple LaTex encoding which allows introducing greek letters or
modifying the font size and appearance in plots.
Pre-allocating a block of memory for holding a non-double matrix is memory efficient. While
allocating blocks of memory for a matrix, zeros are pre-allocated to a matrix.
3/5
https://career.guru99.com/
Repmat function is used to create a single double matrix, example matrix2=repmat(int8(0), 100,
100)
Graphic system used in MatLab is known as handle graphics. It has a high level and low-level
commands.
• High Level Commands: High level command performs image processing, data visualization
and animation for 2D and 3D presentation graphics
• Low Level Commands: Full customization of the appearance of graphics and building of
complete graphical user interface
M files: They are just a plain ASCII text that is interpreted at run time. They are like sub-
programs stored in text files with .m extensions and are called M-files. For most of the MatLab,
development M-files are used.
MEX files: They are basically native C or C++ files which are linked directly into the MatLab
application at runtime. MEX files have efficiency to crash the MatLab application.
18) Explain what is Interpolation and Extrapolation in Matlab? What are their types?
• Interpolation: Taking out function values between different data points in an array is referred
as Interpolation
4/5
https://career.guru99.com/
• Control System
• Fuzzy Logic
• Image Processing
• LMI control
• Neural Networks
• Robust Control
• System Identification
Get and Set are referred as getter and setter functions. For assigning properties, setter
functions are used while for accessing properties getter functions are used.
5/5
Powered by TCPDF (www.tcpdf.org)