Q1. Explain what is MatLab? Where MatLab can be applicable?
Ans: MatLab is a high-level programming language with an interactive environment for visualization, numerical computation and programming function.
Matlab can be applicable at numerous instances like
click here for MATLAB
Q2. What does MatLab consist of?
Ans: MatLab consists of five main parts
Q3. Explain MatLab API (Application Program Interface)?
Ans: 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 files and calling Matlab as a computational engine.
Q4. What are the types of loops does Matlab provides?
Ans: Matlab provides loops like
Q5. List out the operators that MatLab allows?
Ans: Matlab allows following Operators
Q6. Explain what is Simulink?
Ans: Simulink is an add-on product to MatLab, it provides an interactive, simulating, graphical environment for modeling and analyzing of dynamic systems.
Q7. In MatLab is it possible to handle multi-dimensional arrays?
Ans: 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.
Q8. Mention what is the sign convention used in MatLab’s fft routines?
Ans: 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.
Q9. What are the four basic functions to solve Ordinary Differential Equations (ODE)?
Ans: The four basic functions that MatLab has to solve ODE’s are
Q10. Explain how polynomials can be represented in MatLab?
Ans: 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.
Q11. What is the type of program files that MatLab allows to write?
Ans: Matlab allows two types of program files
Q12. Explain how to modify the MatLab Path?
Ans: 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.’
Q13. Explain what is LaTex in MatLab?
Ans: MatLab handles naturally simple LaTex encoding which allows introducing greek letters or modifying the font size and appearance in plots.
Q14. Explain how you can pre-allocate a Non-Double Matrix?
Ans: 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.
The functions to pre allocate memory is int8(), example matrix =int8(zeros(100));
Repmat function is used to create a single double matrix, example matrix2=repmat(int8(0), 100, 100)
Q15. What is Xmath-Matlab? Mention the Xmath features?
Ans: For Xwindow workstations, Xmath is an interactive scripting and graphics environment.
Following are the X-math features
Q16. Name the graphic system used in MatLab?
Ans: Graphic system used in MatLab is known as handle graphics. It has a high level and low-level commands.
Q17. Explain what is M-file and MEX files in MatLab?
Ans:
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.
Q18. 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
Extrapolation: Finding function values beyond the endpoints in array is referred as Extrapolation
The two types of Interpolation and Extrapolation are
Q19. List out some of the common toolboxes present in Matlab?
Ans: Some of the common toolboxes in Matlab are
Q20. What is Get and Set in Matlab?
Ans: 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.
Ans: by the help of two toolboxes of matlab i.e. ANN and Fuzzy
Q22. What was your project in final year?