Question 1. What Is Matlab?
Answer :
MATLAB is a highperformance language for technical computing. It integrates computation, visualization, and programming in an easytouse environment where problems and solutions are expressed in familiar mathematical notation. Typical uses include:
- Math and computation
- Algorithm development
- Modeling, simulation, and prototyping
- Data analysis, exploration, and visualization
- Scientific and engineering graphics
- Application development, including Graphical User Interface building
Question 2. What Are The Matlab System Parts?
Answer :
The MATLAB system consists of five main parts:
- The MATLAB language.
- The MATLAB working environment.
- Handle Graphics.
- The MATLAB mathematical function library.
- The MATLAB Application Program Interface (API).
Question 3. Explain The Matlab Language?
Answer :
This is a highlevel matrix/array language with control flow statements, functions, data structures,input/output, and objectoriented programming features. It allows both “programming in the small” to rapidly create quick and dirty throwaway programs, and “programming in the large” to create complete large and complex application programs.
Question 4. Explain The Matlab Working Environment?
Answer :
This is the set of tools and facilities that you work with as the MATLAB user or programmer. It includes facilities for managing the variables in your workspace and importing and exporting data. It also includes tools for developing, managing, debugging, and profiling Mfiles, MATLAB’s applications.
Question 5. Explain Handle Graphics In Matlab?
Answer :
This is the MATLAB graphics system. It includes highlevel commands for twodimensional and threedimensional data visualization, image processing, animation, and presentation graphics. It also includes lowlevel commands that allow you to fully customize the appearance of graphics as well as to build complete Graphical User Interfaces on your MATLAB applications.
Question 6. Explain The Matlab Mathematical Function Library?
Answer :
This is a vast collection of computational algorithms ranging from elementary functions like sum, sine, cosine, and complex arithmetic, to more sophisticated functions like matrix inverse, matrix eigenvalues, Bessel functions, and fast Fourier transforms.
Question 7. Explain The Matlab Application Program Interface(api)?
Answer :
This is a library that allows you to write C and Fortran programs that interact with MATLAB. It include facilities for calling routines from MATLAB (dynamic linking), calling MATLAB as a computational engine, and for reading and writing MATfiles
Question 8. How To Add Noise To An Image In Matlab?
Answer :
The function noise.m, now installed on ashland too, adds Gaussian, uniform, salt and pepper,additive or multiplicative noise to an image.
Question 9. What Can We Use Matlab For?
Answer :
1. Simple calculations
2. Plotting and analyzing mathematical relationships (2D and 3D)
3. List & Matrix Operations
4. Writing script files (a type of programming)
5. Symbolic manipulation of equations
6. Advanced visualization, animation and GUI interface toolsQuestion 10. Vectorization What Is That In Matlab?how To Do It?
Answer :
Thinking is terms of full matrices/vectors and also some related functions for that * Use of filter(), which works beautifully for some time series models
Question 11. On What Machines Matlab Should Be Run?
Answer :
We will run it from sthelens, and only if sthelens is down, from cher, orsay or tiree. It works on other machines too, but some of the other machines have older versions of the OS and core dump upon exiting from matlab. Some other local machines with new setups work fine. Try your local machine. Matlab is blocked from running on the servers
Question 12. Explain Latex In Matlab?
Answer :
Matlab already handles naturally simple LaTeX encodings that allow introducing Greek lettters or modifying the font size and appearance in plots.
Question 13. Can We Run Matlab With Out Graphics?
Answer :
Sometimes you may want to run scripts which contain plotting commands without displaying the plots and without going into the script to comment out the commands.
An example: if you’re working from home and it’s too slow to run graphics over the network.You can play a simple UNIX trick:
%setenv DISPLAY /dev/null % matlabQuestion 14. How To Correctly Apply The Graphics Patches In Matlab?
Answer :
Open a LOCAL MACHINE window and type: xhost +ashland # Add the following code sequence just before the plot command that was giving you problems: figure; set(gcf,’renderer’,’zbuffer’); [s,w] = unix(‘echo $DISPLAY’); set(gcf,’XDisplay’,w);
Question 15. How To Call Matlab In Batch Mode?
Answer :
This can be done from the command line or from a makefile. You need a script (filename.m). Just type at the command line, or include in the makefile: matlab
Question 16. Explain About Stress Analysis In Matlab?
Answer :
People working on these areas as a aerospace engineers should have familiarity and exposure to NASTRAN and MATLAB with knowledge on space environment and modeling of flexible dynamics.These aerospace engineers will be responsible to conduct stress analysis on metallic and composite structures. NASTRAN, IDEAD, Oracle and PATRAN proficiency level is required. Their duties also include on aircraft which are metallic and composite structures. This includes and understanding of control surface stiffness and loop calculations, finite element modeling (FEM),fatigue testing requirement and analysis.
Question 17. Do You Know What Are The Four Basic Functions To Solve Ordinary Differential Equations?
Answer :
The four basic functions that MatLab has to solve ODE’s are
- Quad
- Quad8
- ODE23
- ODE45
Question 18. What Are Xmath Features?
Answer :
- Scripting language with OOP features
- Libraries that are LNX and C language compatible
- A debugging tools with GUI features
- Color graphics can be pointed and clickable
Question 19. Do You Know What Is Simulink?
Answer :
Simulink is an addon product to MatLab, it provides an interactive, simulating, graphical environment for modeling and analyzing of dynamic systems.
Question 20. What Are The Operators That Matlab Allows?
Answer :
Matlab allows following Operators
- Arithmetic Operators
- Relational Operators
- Logical Operators
- Bitwise Operations
- Set Operations
Question 21. Do You Know What Are The Types Of Loops Does Matlab Provides?
Answer :
Matlab provides loops like
- While Loop
- For Loop
- Nested Loops
Question 22. Do You Know Matlab Consist Of What?
Answer :
MatLab consists of five main parts
- MatLab Language
- MatLab working environment
- Handle Graphics
- MatLab function library
- MatLab Application Program Interface (API)
Question 23. What Is Xmath?
Answer :
Xmath is an interactive scripting and graphics environment for Xwindow workstations.
- With its significant improvement features on MATLABtype software, interactive mathematics,scripting functionalities are elaborated.
- Following are the Xmath features:
- Sripting languages with OOP features.
- Libraries that are LNX and C language compatible.
- A debugging tools with GUI features.
- Color graphics can be pointed and clickable.
- A special layer is available that is programmable for MOTIF GUI.
Question 24. What Is Image Arithmetic Functions In Matlab?
Answer :
Following is the list of image arithmetic functions and their usage.
- Imabsdiff Returns absolute difference of two images.
- Imadd Performs addition of two images or addition of constant to image.
- Imapplymatrix Applies linear combination of color channels.
- Imcomplement Complements an image.
- Imdivide Divide one image into another or divide image by constant.
- Imlincomb Linear combination of images.
- Immultiply Multiplies two images or multiplies image by constant.
- Imsubtract Subtracts one image from another or subtracts constant from image.
Question 25. Tell We Can Matlab Run Without Graphics?
Answer :
At times scripts need to run without displaying the plots.
- By doing this, the script statement need not be commented.
- When working from home, running graphics over the network may be too slow.
- To perform the process, add the following lines of code:
- %setenv DISPLAY /dev/null % MATLAB.
- By using these simple tricks, we can run MATLAB without graphics.
Question 26. Do You Know How To Correctly Apply The Graphics Patches In Matlab?
Answer :
Following is the sequence of commands to apply graphic patches in MATLAB.
Open the LOCAL MACHINE window.
Type the command xhost + ashland.
Add the following code sequence before the plot command.
Figure;
Set(gcf,’renderer’,’zbuffer’);
[s,w] = unix(‘echo $DISPLAY’);
Set(gcf, ‘XDisplay’,w);Question 27. Do You Know What Is Latex In Matlab?
Answer :
MATLAB allows Greek letters.
- These letters are to be encoded.
- To encode these Greek letters, LaTeX is used.
MATLAB already handles naturally simple LaTeX encodings that allow introducing Greek lettters or modifying the font size and appearance in plots.
Question 28. Suppose If You Know Then Tell Me How To Call Matlab In Batch Mode?
Answer :
Batch mode execution of MATLAB can be done from command line or from makefile.
- A script is needed with extension .m.
- Specify all the commands that are to execute in sequential order in the script.
- The commands are placed in the script by using the command makefile
- To add the commands in command line mode, type all the commands at the command line in sequential order.
- The commands are executed soon after typing them at the command line.
Question 29. What Is Memory Management Functions In Matlab?
Answer :
Below is the list of memory management functions.
- Clear – Removes variables from memory.
- Pack – Saves the existing variables to disk, and then reloads them contiguously.
- Save – Selectively persists variables to disk.
- Load – Reloads a data file saved with the save function.
- Quit – Exits MATLAB and returns all allocated memory to the system.
Question 30. Do You Know How To Pre Allocate A Non Double Matrix?
Answer :
Preallocating a block of memory for holding a non double matrix is memory efficient.
- It is faster to use the function ‘repmat’.
- While allocating block of memory for a matrix, zeros are pre allocated to a matrix.
- The function to pre allocate memory is int8().
- Ex: matrix = int8(zeros(100));
- Repmat function is used to create a single double matrix.
- Ex: matrix2 = repmat(int8(0), 100, 100);
- Thus non double matrix is pre allocated.
Question 31. What Are The Basic Plots And Graphs Of Matlab?
Answer :
Following table describes basic plots and graphs.
- Box – Axis border
- Errorbar – Plots error bars along curve
- Hold – Retains current graph while adding new graphs
- Line – Creates line object
- LineSpec (Line Specification) – Syntax of Line Specification String
- Loglog – Log to log scale plot
- Plot – 2-D line plot
- Plot3 – 3-D line plot
- Plotyy – 2-D line plots with y-axis on both left and right side
- Polar – Polar coordinate plot
- Semilogx – Semilogarithmic plot
- Semilogy- Semilogarithmic plot
- Subplot- Creates axis in tiled positions
- Xlim – Sets or queries x-axis limits
- Ylim – Sets or queries y-axis limits
- Zlim – Sets or queries z-axis limits
Question 32. What Are 3d Visualization Elements In Matlab?
Answer :
3D visualization elements allow MATLAB to deal with 3D graphics.
- Surface and Mesh Plots – It includes plot matrices, visualize functions, color maps.
- View Control – Used to control camera viewpoint, rotation, zooming, and aspect ratio and set axis limits.
- Lighting – Used for adding and controlling scene lighting.
- Transparency – Used to specify object transparency.
- Volume Visualization – Used for volume data grid.
Question 33. What Is Handle Graphics In Matlab?
Answer :
Handle Graphics is a subsystem of MATLAB that handles graphics.
- Handle Graphics has high level commands for 2D and 3D data visualization.
- Image processing, animation and presentation graphics can be generated using Handle Graphics.
- Low level commands allow customizing the graphics appearances.
- Handle Graphics allows to build customized Graphics User Interfaces
Question 34. What Is Stress Analysis In Matlab?
Answer :
MATLAB is used in aerospace engineering, space environment.
- MATLAB is suitable for flexible dynamics.
- These domain experts conduct stress analysis on various structures like metallic and composite structures.
- To analyze the stress, NASTRAN, IDEAD, Oracle and PATRAN levels of proficiency is needed.
- The tasks are also used on aircraft that is metallic structure.
- The stress analysis includes control surface stiffness understanding, loop calculations, finite element modeling and fatigue testing requirement and analysis.
Question 35. Explain Briefly Matlab Mathematical Function Library?
Answer :
MATLAB mathematical functions include computational algorithms.
- The elementary computational functions are sum, sine, etc.
- Matrix functions are available including matrix inversion.
- Special functions like Bessel are available.
- MATLAB includes transformation functions, namely Fourier Transformation Functions.
Question 36. What Is Matlab Working Environment?
Answer :
MATLAB working environment has various tools to work with MATLAB.
- It has facilities to manage variables.
- MATLAB supports export and import data across applications.
- Certain tools are available to develop and manage MATLAB files.
- Debugging and profiling of MATLAB applications are more flexible with MATLAB
Question 37. Explain Briefly About Matlab Language?
Answer :
MATLAB language is a high-level matrix language.
- It has control structures, functions, data structures, I/O and OOP features.
- Allows rapid creation of throw-away programs.
- Allows creating large and complex application programs.
- MATLAB API allows to author C and FORTRAN programs to interact with MATLAB.
Question 38. Do You Know About Matlab System Parts?
Answer :
Following are the 5 main parts of MATLAB.
- MATLAB Languange.
- MATLAB working environment.
- Graphics handler.
- MATLAB mathematical library.
- MATLAB Application Program Interface.
Question 39. What Is Pseudo Random Binary Sequence And Numeric Precision In Matlab?
Answer :
pseudo random binary sequence : A form of generating an M-file in the new Frequency Domain System Identification Toolbox, for a specified set of lengths (2^2-1 to 2^30-1) is called pseudo random binary sequence. It is also known as mlbs (for Maximum Length Binary Sequence).
numeric precision : Numeric quantities which are represented as double precision floating point numbers is called numeric precision. On most computers, such numbers have 53 significant binary bits, which is about 15 or 16 decimal digits.Question 40. Which Graphic System Is Used In Matlab? Explain It.
Answer :
- The graphic system which is used in Matlab is known as handle graphics. It has few high level and low level commands.
- High level commands performs data visualization, image processing, and animation for two dimensional and three dimensional presentation graphics.
- Full customization of the appearance of graphics and building of complete Graphical user interfaces on is done by low level commands in MATLAB applications.
Basic Simulation Interview Questions
C Tutorial
C Interview Questions
Linux Embedded systems Tutorial
Embedded Systems Interview Questions
Linux Embedded systems Interview Questions
Java Tutorial
LabView Interview Questions
Basic Simulation Interview Questions
Digital image processing Tutorial
Java Interview Questions
Digital image processing Interview Questions
C Interview Questions
XLink Interview Questions
Embedded C Interview Questions
Embedded Systems Interview Questions
Linux Embedded systems Interview Questions
LabView Interview Questions
Java Interview Questions
Digital image processing Interview Questions