Write a MATLAB script that animates the three operations in Problem 4, as shown in 3blue1brown. The script should display the grid before the transformation and show the transformation taking place slowly over time until the final transformed grid is reached.
FOR REFERENCE ONLY, HERE IS PROBLEM 4:
4. Write down a matrix A that rotates the Cartesian 2D space by θ/4. Write down a matrix B that rotates the Cartesian 2D space by θ/3. Write down a matrix C that shears the Cartesian 2D space in the x-direction such that a point (x,y) before shearing becomes (2x,y) after shearing.