MathWorks Interview Question

All the questions were basic.