I am a graduate student at University of Arizona research on HDL generation from Matlab m-file. I found your article on this subject at Matlab Central. I download your demo code of Adaptive Median Filter (Matlab code) from http://www.mathworks.com/matlabcentral/fileexchange/30068. The Matlab simulation for the aMedianFilter_2D_script.m in the MATLAB_code error can be found at the attached file (Issue with Matlab Demo code for HDL generation.pdf). File Issues while loading the Simulink blocks in HDL_mdl.pdf capture the issues with the Simulink block under the directory HDL_mdl. File Matlab_Errors.pdf is the error message from the command window.
I used MATLAB R2010b for this simulation. Please recheck the demo package and let I know how to fix these issues.
NOTE: Please see detail issues from my E-mail sendout to your MatWork E-mail.