What i know there is no way of generate a flowchart for a matlab program.
I would suggest debugging the program and for example with paper and pencil write your own flowchart.
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!