% ******* LEVEL CONTROL AND EXAMPLES 18.2-4 **** % ******* from MARLIN **** % COPYRIGHT McMASTER UNIVERSITY 1994 % FILENAME : LVLPLOT.M % LAST UPDATED: DECEMBER 1994 % VERSION 2.0 % DESCRIPTION % dynamic simulation of single level with feedback control % called from main menu % THIS PLOTS THE RESULTS % ******************************************************** % PLOTS ARE DISPLAYED % ******************************************************** clf % subplot (2,2,1), plot (time(:),foutp(:)) xlabel('time') ylabel('flow out') % subplot (2,2,3), plot (time(:),finp(:)) ylabel('flow in') xlabel('time') % subplot (2,2,2), plot (time(:), Level(:), time(:), Levelsp(:),'--') ylabel('level') xlabel('time') figure(1) pause; close all