script to run structural matrix generator