// Instructions: // Write code in the matrixMult() method to compute the // the product of two matrices. Also, copy over your code // for matrixVectorMult() from MatrixVectorExample.java public class MatrixVectorExample2 { public static void main (String[] argv) { double[][] A = { {2, -3}, {0, 1} }; double[][] B = { {1, 2}, {0, -3} }; double[] x = {2, 3}; double[][] C = matrixMult (B, A); print (C); double[] z = matrixVectorMult (C, x); print (z); DrawTool.display (); DrawTool.setXYRange (-10,10, -10,10); DrawTool.drawMiddleAxes (true); DrawTool.drawVector (x); DrawTool.setArrowColor ("green"); DrawTool.drawVector (z); } static double[][] matrixMult (double[][] A, double[][] B) { // INSERT YOUR CODE HERE to compute A times B. // Here, A and B are just parameters and not the same // as the A and B matrices in main(). } static double[] matrixVectorMult (double[][] A, double[] v) { // INSERT YOUR CODE HERE from MatrixVectorExample.java } static void print (double[] x) { System.out.print ("Vector:"); for (int i=0; i