run2_11.m - clear all Global variables global AA BB GG...

Info icon This preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
clear all % Global variables global AA BB GG s_nom m_nom p_nom min2day % Defining variables s_nom = [375; 500; 4; 100]; m_nom = [10000; 10; 0.1]; p_nom = [300]; min2day = 1/(24*60); % Minutes to days % Initial conditions s0 = [350; 525; 6; 130]; x0 = s0-s_nom; % Continuous-time model simulation [tc,xc] = ode45('furnace_ode_lin',[0 30*min2day],x0); % Plots figure(1) plot(tc*(1/min2day),xc(:,1)+s_nom(1),'k-'); title('Exercise 2.11 (ii)','FontSize',14,'FontName','Times New Roman'); ylabel('Furnace Temperature (K)','FontSize',14,'FontName','Times New Roman'); xlabel('Time (min)','FontSize',14,'FontName','Times New Roman') legend('Continuous-time Linear '); figure(2) plot(tc*(1/min2day),xc(:,2)+s_nom(2),'k-'); title('Exercise 2.11 (ii)','FontSize',14,'FontName','Times New Roman'); ylabel('Reactor Temperature (K)','FontSize',14,'FontName','Times New Roman'); xlabel('Time (min)','FontSize',14,'FontName','Times New Roman') legend('Continuous-time Linear '); figure(3) plot(tc*(1/min2day),xc(:,3)+s_nom(3),'k-'); title('Exercise 2.11 (ii)','FontSize',14,'FontName','Times New Roman'); ylabel('Furnace O2 (%)','FontSize',14,'FontName','Times New Roman'); xlabel('Time (min)','FontSize',14,'FontName','Times New Roman') legend('Continuous-time Linear ');
Image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern