MathWorks Interview Question

Question to code struct in MATLAB and matrix related coding exercise.