O'Reilly logo

Process Control: Modeling, Design, and Simulation by B. Wayne Bequette

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Appendix 4.1: Files Used to Generate Example 4.4

Figure A4-1. Simulink File est_vdv.mdl.

 % use PRBS to estimate a discrete model of the vdv reactor % T = 0:0.25:5; % time vector (row) T = T'; % time vector (column) seed = [3;0.5]; % seed for noise generation randn('state',seed); % using the same seed each time uu = 0.5 1 0.25*randn(length(T),1); % mean of 0.5 with variance % of 0.25 U = 2*round(uu)-1; % creates PRBS with -1 and 1 values % sim('est_vdv'); % runs simulation of linear van de vusse % diagram figure(1); % plot input-output data subplot(2,1,1),plot(tp,yp,'k',t,y,'ko'); xlabel('time, min'), ylabel('y') title('PRBS estimation example') ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required