Matlab Interview Questions
Matlab Interview Questions
4) What is Simulink?
Simulink is an add-on product to MATLAB, it provides an interactive, simulating,
graphical environment for modeling and analyzing dynamic systems.
To create this Toolbox, go to the MATLAB Start menu, then go to the Toolboxes
submenu, then select the Toolbox which we want to use.
23) Explain about the mentioned tools in MATLAB: who, whos, pi,
eps, type.
Who: It will show you all the variables you have currently defined.
whos: It will show you the variables, their sizes, and some other info.
eps: It is a function that returns MATLAB?s lowest floating-point number. This is useful if
we have a vector that might include zeros that are going to wind up in the denominator
of something. If we add eps to the vector, you aren't adding anything significant, but we
won't run into a divide by zero problems anymore
Type: function name for any function in MATLAB?s search path lets us see how that
function is written.
A = [3 6 9 4 1];
for i = 1:length(A)
disp(A(i))
end
As discussed earlier, a for loop is used is often used to assign to or access array
elements iteratively.
A=3X3
21 92 43
45 67 54
72 88 91