MATLAB models of MUSIC validate the algorithmic approach taken and provide a means to synthesize I/O data for the AI Engine implementation. The system model is in the <path-to-repo>/matlab/System folder. You can configure the system parameters shown in the following code in the Configuration/testCfg.m file. After editing this file (or going with its default settings), you can run the MUSIC model using the testMusic.m script from the <path-to-repo>/matlab/System folder.
Running the MATLAB model produces the console and figure output as follows. It shows statistics for the accuracy of the Gram-Schmidt QRD used by the tutorial versus the built-in qr() MATLAB function. The consolde also provides the difference between the MATLAB svd() versus the one-sided Jacobi algorithm with four iterations used by the tutorial. The figure plots the peaks of the MUSIC pseudo-spectrum along with the nulls of its corresponding denominator which are identified instead by the approach adopted in the tutorial. The MATLAB model generates a detailed dump of the system signals, as well as console and figure output in the top-level data folder.