Cache Memory and Matrix Multiplication in MATLAB ================================================= Contents -------- matmul_ijk.m Explicit i-j-k loop implementation matmul_kji.m Explicit k-j-i loop implementation matmul_blocked.m Blocked matrix multiplication implementation cache_matrix_lab.m Main experiment script MATLAB_Student_Guide.md Student instructions and analysis questions How to run ---------- 1. Put all .m files in the same folder. 2. Open MATLAB and set the current folder to that folder. 3. Run: cache_matrix_lab The script writes matrix_multiplication_results.csv and creates a timing plot. It uses timeit and may take several minutes because the implementations use explicit loops. Reduce the sizes vector in cache_matrix_lab.m if needed. Notes ----- - The script checks numerical correctness against MATLAB's A*B. - Results depend on MATLAB version, hardware, and system load. - This is an implementation comparison, not a direct measurement of cache misses or cache behavior in isolation. - Test these files with the MATLAB version used in your course before distributing them to students.