MATLAB MCQ Test: MATLAB MCQs - Practice Questions
1. Which MATLAB function is used for creating a plot?
2. In MATLAB, what does the 'fminunc' function do?
3. What is the purpose of the 'kron' function in MATLAB?
4. What does the 'svd' function do in MATLAB?
5. What is the purpose of the 'polyfit' function in MATLAB?
6. How do you set the axis limits in a MATLAB plot?
7. How do you check if a number is even in MATLAB?
8. What does the 'eye' function in MATLAB do?
9. What is the default extension for a MATLAB script file?
10. How do you concatenate two cell arrays 'A' and 'B' vertically in MATLAB?
11. What does the 'fliplr' function do in MATLAB?
12. In MATLAB, what does the 'randn' function generate?
13. How do you concatenate two matrices vertically in MATLAB?
14. Which MATLAB function is used for basic arithmetic operations like addition and subtraction?
15. What does MATLAB stand for?
16. What is the MATLAB command for reading data from a CSV file?
17. How do you remove duplicate elements from an array in MATLAB?
18. How do you comment a single line in MATLAB?
19. What is the primary purpose of the 'subplot' function in MATLAB?
20. How do you open the MATLAB Help browser?
21. What is the 'conv' function used for in MATLAB?
22. In MATLAB, what does the 'for' loop primarily iterate over?
23. How do you create a user-defined function in MATLAB?
24. Which command is used to find the maximum value in an array in MATLAB?
25. Which command is used to display the contents of a variable in MATLAB?
26. How do you create a row vector in MATLAB?
27. What is the purpose of the 'hist' function in MATLAB?
28. What is the MATLAB command for element-wise multiplication of two matrices 'A' and 'B'?
29. What is the primary use of the 'imread' function in MATLAB?
30. In MATLAB, what does the 'polyfit' function do?
31. What is the 'cumsum' function used for in MATLAB?
32. How do you create a 3D plot in MATLAB?
33. Which command is used to find the square root of a number in MATLAB?
34. What is the purpose of the 'fprintf' function in MATLAB?
35. What is the primary use of the 'ode45' function in MATLAB?
36. How do you extract specific elements from an array based on a condition in MATLAB?
37. How do you perform element-wise multiplication of two matrices in MATLAB?
38. What is the purpose of the 'sort' function in MATLAB?
39. How do you create a colormap in MATLAB?
40. What is the MATLAB command for finding the eigenvalues of a matrix 'A'?