MATLAB MCQs

20 min Score: 0 Attempted: 0/20 Subscribe
1. What is the default data type for variables in MATLAB?





2. How do you create a 3×3 matrix of zeros in MATLAB?





3. What does the size function do in MATLAB?





4. How do you create a vector with values from 1 to 10 in MATLAB?





5. How do you comment a single line in MATLAB?





6. What is the output of length([1,2,3;4,5,6])?





7. How do you transpose a matrix A in MATLAB?





8. Which function is used to plot a graph in MATLAB?





9. How do you find the determinant of a matrix A?





10. What is the purpose of the clear command in MATLAB?





11. How do you create a new figure window in MATLAB?





12. What is the output of sum([1,2,3;4,5,6])?





13. How do you perform element-wise multiplication in MATLAB?





14. What is the purpose of the linspace function in MATLAB?





15. How do you concatenate two matrices A and B horizontally?





16. Which function is used to calculate the mean of an array in MATLAB?





17. How do you create a 4×4 identity matrix in MATLAB?





18. What does the reshape function do in MATLAB?





19. How do you find the maximum value in a vector v?





20. What is the default plot line color in MATLAB?





Leave a Comment

All copyrights Reserved by MCQsAnswers.com - Powered By T4Tutorials