Snippets of MATLAB codes written for my research projects.
This contains disorder_slab.m file that interact with COMSOL to generate complex slab structures at random as pictured below, the extreme left is the entire structure, the rest is the zoom-in view of the central area of the structure, the red line is where measurement should be taken.
TM.m will compute transmission matrix of the structure based on input and ouput fields, and RMT.m will analyze the transmission matrix with eigen-decomposition (PCA) following random matrix theory.
This contains sample code to process intensity correlation data for image reconstruction, will need phase retreival algorithm.
The sample and reconstruction can be like below: