1. Modify the JavaScript code below
  2. Check/uncheck checkboxes
  3. Press [Run]
N = 200; // total number of data points x = new Array(N); // x protein concentration (uM) y = new Array(N); // y protein concentration (uM) c = new Array(N); // c (controller)protein concentration (uM) d = new Array(N); // disturbance added to y X = 10; // constant x protein concentration x[0] = X; // initial x protein concentration y[0] = 0; // initial y protein concentration c[0] = 0; // initial z protein concentration d[0] = 0; // initial disturbance pXC = 0.1; // production parameter pXC pC = 0.9; // degradation/dilution parameter pC pCY = 5; // production parameter pCY pYC = 0.1; // negative feedback parameter pYC pY = 0.01; // degradation/dilution parameter pY for (n = 1; n < N; n++) // N-1 loops (1 loop = 1 min) { x[n] = X; // x protein concentration // update c protein concentration c[n] = pXC*x[n-1] - pYC*y[n-1] + pC*c[n-1]; // update y protein concentration if ( n > 100) { d[n] = 5; } else { d[n] = 0; } // update c protein concentration y[n]= pCY*c[n-1] + pY*y[n-1] + d[n]; // add disturbance to y } // end of for loop