TED matlab code to simulate Tennessee Eastman model copy all files in your matlab folder, you can run teddemo.m