Team:Paris/Modeling/plot

From 2008.igem.org

(Difference between revisions)
 
(One intermediate revision not shown)
Line 17: Line 17:
<meta name=Generator content="Microsoft Word 11">
<meta name=Generator content="Microsoft Word 11">
<meta name=Originator content="Microsoft Word 11">
<meta name=Originator content="Microsoft Word 11">
-
<link rel=File-List href="premiermodele_fichiers/filelist.xml">
+
<link rel=File-List href="simul_fichiers/filelist.xml">
<title>% Main function for the simulations</title>
<title>% Main function for the simulations</title>
<!--[if gte mso 9]><xml>
<!--[if gte mso 9]><xml>
Line 24: Line 24:
   <o:LastAuthor> </o:LastAuthor>
   <o:LastAuthor> </o:LastAuthor>
   <o:Revision>1</o:Revision>
   <o:Revision>1</o:Revision>
-
   <o:TotalTime>1</o:TotalTime>
+
   <o:TotalTime>0</o:TotalTime>
-
   <o:Created>2008-08-06T17:08:00Z</o:Created>
+
   <o:Created>2008-08-08T15:37:00Z</o:Created>
-
   <o:LastSaved>2008-08-06T17:09:00Z</o:LastSaved>
+
   <o:LastSaved>2008-08-08T15:37:00Z</o:LastSaved>
   <o:Pages>1</o:Pages>
   <o:Pages>1</o:Pages>
-
   <o:Words>94</o:Words>
+
   <o:Words>233</o:Words>
-
   <o:Characters>522</o:Characters>
+
   <o:Characters>1282</o:Characters>
   <o:Company> Supélec</o:Company>
   <o:Company> Supélec</o:Company>
-
   <o:Lines>4</o:Lines>
+
   <o:Lines>10</o:Lines>
-
   <o:Paragraphs>1</o:Paragraphs>
+
   <o:Paragraphs>3</o:Paragraphs>
-
   <o:CharactersWithSpaces>615</o:CharactersWithSpaces>
+
   <o:CharactersWithSpaces>1512</o:CharactersWithSpaces>
   <o:Version>11.6408</o:Version>
   <o:Version>11.6408</o:Version>
  </o:DocumentProperties>
  </o:DocumentProperties>
</xml><![endif]--><!--[if gte mso 9]><xml>
</xml><![endif]--><!--[if gte mso 9]><xml>
  <w:WordDocument>
  <w:WordDocument>
-
  <w:GrammarState>Clean</w:GrammarState>
 
   <w:HyphenationZone>21</w:HyphenationZone>
   <w:HyphenationZone>21</w:HyphenationZone>
   <w:PunctuationKerning/>
   <w:PunctuationKerning/>
Line 69: Line 68:
font-family:"Times New Roman";
font-family:"Times New Roman";
mso-fareast-font-family:"Times New Roman";}
mso-fareast-font-family:"Times New Roman";}
-
span.GramE
 
-
{mso-style-name:"";
 
-
mso-gram-e:yes;}
 
@page Section1
@page Section1
{size:612.0pt 792.0pt;
{size:612.0pt 792.0pt;
Line 114: Line 110:
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
-
lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";color:forestgreen;
+
style='font-size:10.0pt;font-family:"Courier New";color:forestgreen'>% Main
-
mso-ansi-language:EN-GB'>% Main function for the simulations</span><span
+
function for the simulations</span><span style='font-family:"Courier New";
-
lang=EN-GB style='font-family:"Courier New";mso-bidi-font-family:"Times New Roman";
+
mso-bidi-font-family:"Times New Roman"'><o:p></o:p></span></p>
-
mso-ansi-language:EN-GB'><o:p></o:p></span></p>
+
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
-
lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";color:black;
+
style='font-size:10.0pt;font-family:"Courier New";color:black'>close </span><span
-
mso-ansi-language:EN-GB'>clear, close </span><span lang=EN-GB style='font-size:
+
style='font-size:10.0pt;font-family:"Courier New";color:#A020F0'>all</span><span
-
10.0pt;font-family:"Courier New";color:#A020F0;mso-ansi-language:EN-GB'>all</span><span
+
style='font-size:10.0pt;font-family:"Courier New";color:black'>;</span><span
-
lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";color:black;
+
style='font-family:"Courier New";mso-bidi-font-family:"Times New Roman"'><o:p></o:p></span></p>
-
mso-ansi-language:EN-GB'>;</span><span lang=EN-GB style='font-family:"Courier New";
+
-
mso-bidi-font-family:"Times New Roman";mso-ansi-language:EN-GB'><o:p></o:p></span></p>
+
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
-
lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";color:black;
+
style='font-size:10.0pt;font-family:"Courier New";color:forestgreen'>%% File to
-
mso-ansi-language:EN-GB'><span style='mso-spacerun:yes'> </span></span><span
+
use to obtain :</span><span style='font-family:"Courier New";mso-bidi-font-family:
-
lang=EN-GB style='font-family:"Courier New";mso-bidi-font-family:"Times New Roman";
+
"Times New Roman"'><o:p></o:p></span></p>
 +
 
 +
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
 +
style='font-size:10.0pt;font-family:"Courier New";color:forestgreen'>%<span
 +
style='mso-spacerun:yes'>  </span>1 - The ouput of the system</span><span
 +
style='font-family:"Courier New";mso-bidi-font-family:"Times New Roman"'><o:p></o:p></span></p>
 +
 
 +
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
 +
style='font-size:10.0pt;font-family:"Courier New";color:forestgreen'>%<span
 +
style='mso-spacerun:yes'>  </span>2 - A visualization of that output</span><span
 +
style='font-family:"Courier New";mso-bidi-font-family:"Times New Roman"'><o:p></o:p></span></p>
 +
 
 +
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
 +
style='font-size:10.0pt;font-family:"Courier New";color:forestgreen'>%<span
 +
style='mso-spacerun:yes'>  </span>3 - The value of a criteria describing
 +
whether there are oscillations</span><span style='font-family:"Courier New";
 +
mso-bidi-font-family:"Times New Roman"'><o:p></o:p></span></p>
 +
 
 +
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
 +
style='font-size:10.0pt;font-family:"Courier New";color:forestgreen'><span
 +
style='mso-spacerun:yes'> </span></span><span style='font-family:"Courier New";
 +
mso-bidi-font-family:"Times New Roman"'><o:p></o:p></span></p>
 +
 
 +
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
 +
style='font-size:10.0pt;font-family:"Courier New";color:blue'>global</span><span
 +
style='font-size:10.0pt;font-family:"Courier New";color:black'> Ncell;</span><span
 +
style='font-family:"Courier New";mso-bidi-font-family:"Times New Roman"'><o:p></o:p></span></p>
 +
 
 +
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
 +
style='font-size:10.0pt;font-family:"Courier New";color:blue'>global</span><span
 +
style='font-size:10.0pt;font-family:"Courier New";color:black'> Next;</span><span
 +
style='font-family:"Courier New";mso-bidi-font-family:"Times New Roman"'><o:p></o:p></span></p>
 +
 
 +
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
 +
style='font-size:10.0pt;font-family:"Courier New";color:black'>tmax=50;</span><span
 +
style='font-family:"Courier New";mso-bidi-font-family:"Times New Roman"'><o:p></o:p></span></p>
 +
 
 +
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
 +
style='font-size:10.0pt;font-family:"Courier New";color:black'><span
 +
style='mso-spacerun:yes'> </span></span><span style='font-family:"Courier New";
 +
mso-bidi-font-family:"Times New Roman"'><o:p></o:p></span></p>
 +
 
 +
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
 +
style='font-size:10.0pt;font-family:"Courier New";color:black'>t=[0:0.1:tmax];</span><span
 +
style='font-family:"Courier New";mso-bidi-font-family:"Times New Roman"'><o:p></o:p></span></p>
 +
 
 +
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
 +
style='font-size:10.0pt;font-family:"Courier New";color:black'>t2=t.*20/log(2);</span><span
 +
style='font-family:"Courier New";mso-bidi-font-family:"Times New Roman"'><o:p></o:p></span></p>
 +
 
 +
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
 +
style='font-size:10.0pt;font-family:"Courier New";color:black'><span
 +
style='mso-spacerun:yes'> </span></span><span style='font-family:"Courier New";
 +
mso-bidi-font-family:"Times New Roman"'><o:p></o:p></span></p>
 +
 
 +
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
 +
style='font-size:10.0pt;font-family:"Courier New";color:black'>V0=zeros(1,Next);</span><span
 +
style='font-family:"Courier New";mso-bidi-font-family:"Times New Roman"'><o:p></o:p></span></p>
 +
 
 +
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
 +
style='font-size:10.0pt;font-family:"Courier New";color:blue'>for</span><span
 +
style='font-size:10.0pt;font-family:"Courier New";color:black'> i=1:Ncell</span><span
 +
style='font-family:"Courier New";mso-bidi-font-family:"Times New Roman"'><o:p></o:p></span></p>
 +
 
 +
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
 +
style='font-size:10.0pt;font-family:"Courier New";color:black'><span
 +
style='mso-spacerun:yes'>    </span>V0(8+8*(i-1))=0;</span><span
 +
style='font-family:"Courier New";mso-bidi-font-family:"Times New Roman"'><o:p></o:p></span></p>
 +
 
 +
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
 +
style='font-size:10.0pt;font-family:"Courier New";color:blue'>end</span><span
 +
style='font-family:"Courier New";mso-bidi-font-family:"Times New Roman"'><o:p></o:p></span></p>
 +
 
 +
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
 +
style='font-size:10.0pt;font-family:"Courier New";color:blue'><span
 +
style='mso-spacerun:yes'> </span></span><span style='font-family:"Courier New";
 +
mso-bidi-font-family:"Times New Roman"'><o:p></o:p></span></p>
 +
 
 +
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
 +
style='font-size:10.0pt;font-family:"Courier New";color:forestgreen'>%V0=[0;0;0;0;0;0;0;1;0;0;0;0;0;0;0;1;0];
 +
%Initial state</span><span style='font-family:"Courier New";mso-bidi-font-family:
 +
"Times New Roman"'><o:p></o:p></span></p>
 +
 
 +
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
 +
style='font-size:10.0pt;font-family:"Courier New";color:black'>V=simul(t,V0);</span><span
 +
style='font-size:10.0pt;font-family:"Courier New";color:forestgreen'>%Numerical
 +
simulation of the system</span><span style='font-family:"Courier New";
 +
mso-bidi-font-family:"Times New Roman"'><o:p></o:p></span></p>
 +
 
 +
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
 +
style='font-size:10.0pt;font-family:"Courier New";color:forestgreen'><span
 +
style='mso-spacerun:yes'> </span></span><span style='font-family:"Courier New";
 +
mso-bidi-font-family:"Times New Roman"'><o:p></o:p></span></p>
 +
 
 +
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
 +
style='font-size:10.0pt;font-family:"Courier New";color:forestgreen'>%
 +
Visualization of the output</span><span style='font-family:"Courier New";
 +
mso-bidi-font-family:"Times New Roman"'><o:p></o:p></span></p>
 +
 
 +
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
 +
style='font-size:10.0pt;font-family:"Courier New";color:black'><span
 +
style='mso-spacerun:yes'> </span>Z1=[V(:,8)];</span><span style='font-family:
 +
"Courier New";mso-bidi-font-family:"Times New Roman"'><o:p></o:p></span></p>
 +
 
 +
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
 +
style='font-size:10.0pt;font-family:"Courier New";color:black'><span
 +
style='mso-spacerun:yes'> </span>Z2=[V(:,2:4)];</span><span style='font-family:
 +
"Courier New";mso-bidi-font-family:"Times New Roman"'><o:p></o:p></span></p>
 +
 
 +
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
 +
style='font-size:10.0pt;font-family:"Courier New";color:forestgreen'>%
 +
Z2=[V(:,9),V(:,10),V(:,11),V(:,12),V(:,13),V(:,14),V(:,15),V(:,16)];</span><span
 +
style='font-family:"Courier New";mso-bidi-font-family:"Times New Roman"'><o:p></o:p></span></p>
 +
 
 +
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
 +
style='font-size:10.0pt;font-family:"Courier New";color:forestgreen'>%
 +
Z3=[V(:,17)];</span><span style='font-family:"Courier New";mso-bidi-font-family:
 +
"Times New Roman"'><o:p></o:p></span></p>
 +
 
 +
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
 +
style='font-size:10.0pt;font-family:"Courier New";color:forestgreen'><span
 +
style='mso-spacerun:yes'> </span></span><span style='font-family:"Courier New";
 +
mso-bidi-font-family:"Times New Roman"'><o:p></o:p></span></p>
 +
 
 +
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
 +
style='font-size:10.0pt;font-family:"Courier New";color:forestgreen'>%% tests
 +
oscill &amp; FIFO</span><span style='font-family:"Courier New";mso-bidi-font-family:
 +
"Times New Roman"'><o:p></o:p></span></p>
 +
 
 +
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
 +
style='font-size:10.0pt;font-family:"Courier New";color:black'>plot(t2,Z1);</span><span
 +
style='font-family:"Courier New";mso-bidi-font-family:"Times New Roman"'><o:p></o:p></span></p>
 +
 
 +
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
 +
style='font-size:10.0pt;font-family:"Courier New";color:black'>legend(</span><span
 +
style='font-size:10.0pt;font-family:"Courier New";color:#A020F0'>'FlhDC'</span><span
 +
style='font-size:10.0pt;font-family:"Courier New";color:black'>);</span><span
 +
style='font-family:"Courier New";mso-bidi-font-family:"Times New Roman"'><o:p></o:p></span></p>
 +
 
 +
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
 +
style='font-size:10.0pt;font-family:"Courier New";color:black'>figure;</span><span
 +
style='font-family:"Courier New";mso-bidi-font-family:"Times New Roman"'><o:p></o:p></span></p>
 +
 
 +
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
 +
style='font-size:10.0pt;font-family:"Courier New";color:black'>plot(t2,Z2');</span><span
 +
style='font-family:"Courier New";mso-bidi-font-family:"Times New Roman"'><o:p></o:p></span></p>
 +
 
 +
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
 +
style='font-size:10.0pt;font-family:"Courier New";color:black'>legend(</span><span
 +
style='font-size:10.0pt;font-family:"Courier New";color:#A020F0'>'FliL'</span><span
 +
style='font-size:10.0pt;font-family:"Courier New";color:black'>,</span><span
 +
style='font-size:10.0pt;font-family:"Courier New";color:#A020F0'>'FlgA'</span><span
 +
style='font-size:10.0pt;font-family:"Courier New";color:black'>,</span><span
 +
style='font-size:10.0pt;font-family:"Courier New";color:#A020F0'>'FlhB'</span><span
 +
style='font-size:10.0pt;font-family:"Courier New";color:black'>);</span><span
 +
style='font-family:"Courier New";mso-bidi-font-family:"Times New Roman"'><o:p></o:p></span></p>
 +
 
 +
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
 +
style='font-size:10.0pt;font-family:"Courier New";color:forestgreen'>%
 +
title('Cell1');</span><span style='font-family:"Courier New";mso-bidi-font-family:
 +
"Times New Roman"'><o:p></o:p></span></p>
 +
 
 +
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
 +
style='font-size:10.0pt;font-family:"Courier New";color:forestgreen'>%xlabel('time
 +
(min)');</span><span style='font-family:"Courier New";mso-bidi-font-family:
 +
"Times New Roman"'><o:p></o:p></span></p>
 +
 
 +
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
 +
style='font-size:10.0pt;font-family:"Courier New";color:forestgreen'>%
 +
ylabel('concentrations');</span><span style='font-family:"Courier New";
 +
mso-bidi-font-family:"Times New Roman"'><o:p></o:p></span></p>
 +
 
 +
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
 +
style='font-size:10.0pt;font-family:"Courier New";color:forestgreen'>%<span
 +
style='mso-spacerun:yes'>  </span></span><span style='font-family:"Courier New";
 +
mso-bidi-font-family:"Times New Roman"'><o:p></o:p></span></p>
 +
 
 +
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
 +
style='font-size:10.0pt;font-family:"Courier New";color:forestgreen'>% figure;</span><span
 +
style='font-family:"Courier New";mso-bidi-font-family:"Times New Roman"'><o:p></o:p></span></p>
 +
 
 +
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
 +
style='font-size:10.0pt;font-family:"Courier New";color:forestgreen'>%
 +
plot(t,Z2);</span><span style='font-family:"Courier New";mso-bidi-font-family:
 +
"Times New Roman"'><o:p></o:p></span></p>
 +
 
 +
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
 +
style='font-size:10.0pt;font-family:"Courier New";color:forestgreen'>%
 +
legend('FliA','FliL','FlgA','FlhB','AHL interieur','mTetR','TetR','flhDC');</span><span
 +
style='font-family:"Courier New";mso-bidi-font-family:"Times New Roman"'><o:p></o:p></span></p>
 +
 
 +
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
 +
lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";color:forestgreen;
 +
mso-ansi-language:EN-GB'>% title('cell2');</span><span lang=EN-GB
 +
style='font-family:"Courier New";mso-bidi-font-family:"Times New Roman";
mso-ansi-language:EN-GB'><o:p></o:p></span></p>
mso-ansi-language:EN-GB'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";color:forestgreen;
lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";color:forestgreen;
-
mso-ansi-language:EN-GB'>%% File to use to obtain :</span><span lang=EN-GB
+
mso-ansi-language:EN-GB'>% xlabel('time');</span><span lang=EN-GB
style='font-family:"Courier New";mso-bidi-font-family:"Times New Roman";
style='font-family:"Courier New";mso-bidi-font-family:"Times New Roman";
mso-ansi-language:EN-GB'><o:p></o:p></span></p>
mso-ansi-language:EN-GB'><o:p></o:p></span></p>
Line 141: Line 328:
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";color:forestgreen;
lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";color:forestgreen;
-
mso-ansi-language:EN-GB'>%<span style='mso-spacerun:yes'>  </span>1 - The
+
mso-ansi-language:EN-GB'>% ylabel('concentrations');</span><span lang=EN-GB
-
ouput of the system</span><span lang=EN-GB style='font-family:"Courier New";
+
style='font-family:"Courier New";mso-bidi-font-family:"Times New Roman";
-
mso-bidi-font-family:"Times New Roman";mso-ansi-language:EN-GB'><o:p></o:p></span></p>
+
mso-ansi-language:EN-GB'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";color:forestgreen;
lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";color:forestgreen;
-
mso-ansi-language:EN-GB'>%<span style='mso-spacerun:yes'>  </span>2 - A
+
mso-ansi-language:EN-GB'>% </span><span lang=EN-GB style='font-family:"Courier New";
-
visualization of that output</span><span lang=EN-GB style='font-family:"Courier New";
+
mso-bidi-font-family:"Times New Roman";mso-ansi-language:EN-GB'><o:p></o:p></span></p>
mso-bidi-font-family:"Times New Roman";mso-ansi-language:EN-GB'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";color:forestgreen;
lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";color:forestgreen;
-
mso-ansi-language:EN-GB'>%<span style='mso-spacerun:yes'>   </span>3 - The
+
mso-ansi-language:EN-GB'>% figure;</span><span lang=EN-GB style='font-family:
-
value of a criteria describing whether there are oscillations</span><span
+
"Courier New";mso-bidi-font-family:"Times New Roman";mso-ansi-language:EN-GB'><o:p></o:p></span></p>
-
lang=EN-GB style='font-family:"Courier New";mso-bidi-font-family:"Times New Roman";
+
 
 +
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
 +
lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";color:forestgreen;
 +
mso-ansi-language:EN-GB'>% plot(t,Z3');</span><span lang=EN-GB
 +
style='font-family:"Courier New";mso-bidi-font-family:"Times New Roman";
mso-ansi-language:EN-GB'><o:p></o:p></span></p>
mso-ansi-language:EN-GB'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";color:forestgreen;
lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";color:forestgreen;
-
mso-ansi-language:EN-GB'><span style='mso-spacerun:yes'> </span></span><span
+
mso-ansi-language:EN-GB'>% legend('AHL ext');</span><span lang=EN-GB
-
lang=EN-GB style='font-family:"Courier New";mso-bidi-font-family:"Times New Roman";
+
style='font-family:"Courier New";mso-bidi-font-family:"Times New Roman";
mso-ansi-language:EN-GB'><o:p></o:p></span></p>
mso-ansi-language:EN-GB'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
-
lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";color:black;
+
lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";color:forestgreen;
-
mso-ansi-language:EN-GB'>tmax=200;</span><span lang=EN-GB style='font-family:
+
mso-ansi-language:EN-GB'>% title('2 cells model');</span><span lang=EN-GB
-
"Courier New";mso-bidi-font-family:"Times New Roman";mso-ansi-language:EN-GB'><o:p></o:p></span></p>
+
style='font-family:"Courier New";mso-bidi-font-family:"Times New Roman";
 +
mso-ansi-language:EN-GB'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
-
lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";color:black;
+
lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";color:forestgreen;
-
mso-ansi-language:EN-GB'>t=[0:0.1:tmax];</span><span lang=EN-GB
+
mso-ansi-language:EN-GB'>% xlabel('time');</span><span lang=EN-GB
style='font-family:"Courier New";mso-bidi-font-family:"Times New Roman";
style='font-family:"Courier New";mso-bidi-font-family:"Times New Roman";
mso-ansi-language:EN-GB'><o:p></o:p></span></p>
mso-ansi-language:EN-GB'><o:p></o:p></span></p>
Line 177: Line 368:
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";color:forestgreen;
lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";color:forestgreen;
-
mso-ansi-language:EN-GB'>%Prop=0.3;</span><span lang=EN-GB style='font-family:
+
mso-ansi-language:EN-GB'>% ylabel('concentrations');</span><span lang=EN-GB
-
"Courier New";mso-bidi-font-family:"Times New Roman";mso-ansi-language:EN-GB'><o:p></o:p></span></p>
+
style='font-family:"Courier New";mso-bidi-font-family:"Times New Roman";
 +
mso-ansi-language:EN-GB'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
Line 187: Line 379:
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
-
lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";color:black;
+
lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";color:forestgreen;
-
mso-ansi-language:EN-GB'>V0=[1;0;0;0;0;0;0;0;0];</span><span lang=EN-GB
+
mso-ansi-language:EN-GB'>%% tests synchronisation</span><span lang=EN-GB
-
style='font-size:10.0pt;font-family:"Courier New";color:forestgreen;mso-ansi-language:
+
style='font-family:"Courier New";mso-bidi-font-family:"Times New Roman";
-
EN-GB'>%Initial state</span><span lang=EN-GB style='font-family:"Courier New";
+
mso-ansi-language:EN-GB'><o:p></o:p></span></p>
-
mso-bidi-font-family:"Times New Roman";mso-ansi-language:EN-GB'><o:p></o:p></span></p>
+
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
-
lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";color:black;
+
lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";color:forestgreen;
-
mso-ansi-language:EN-GB'>V=simul(t,V0);</span><span lang=EN-GB
+
mso-ansi-language:EN-GB'>% figure;</span><span lang=EN-GB style='font-family:
-
style='font-size:10.0pt;font-family:"Courier New";color:forestgreen;mso-ansi-language:
+
"Courier New";mso-bidi-font-family:"Times New Roman";mso-ansi-language:EN-GB'><o:p></o:p></span></p>
-
EN-GB'>%Numerical simulation of the system</span><span lang=EN-GB
+
 
 +
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
 +
lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";color:forestgreen;
 +
mso-ansi-language:EN-GB'>% plot(t,[V(:,2),V(:,10)]');</span><span lang=EN-GB
style='font-family:"Courier New";mso-bidi-font-family:"Times New Roman";
style='font-family:"Courier New";mso-bidi-font-family:"Times New Roman";
mso-ansi-language:EN-GB'><o:p></o:p></span></p>
mso-ansi-language:EN-GB'><o:p></o:p></span></p>
Line 203: Line 397:
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";color:forestgreen;
lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";color:forestgreen;
-
mso-ansi-language:EN-GB'><span style='mso-spacerun:yes'> </span></span><span
+
mso-ansi-language:EN-GB'>% legend('fliL');</span><span lang=EN-GB
 +
style='font-family:"Courier New";mso-bidi-font-family:"Times New Roman";
 +
mso-ansi-language:EN-GB'><o:p></o:p></span></p>
 +
 
 +
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
 +
lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";color:forestgreen;
 +
mso-ansi-language:EN-GB'>% title('Test Synchronisation');</span><span
lang=EN-GB style='font-family:"Courier New";mso-bidi-font-family:"Times New Roman";
lang=EN-GB style='font-family:"Courier New";mso-bidi-font-family:"Times New Roman";
mso-ansi-language:EN-GB'><o:p></o:p></span></p>
mso-ansi-language:EN-GB'><o:p></o:p></span></p>
Line 209: Line 409:
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";color:forestgreen;
lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";color:forestgreen;
-
mso-ansi-language:EN-GB'>% Visualization of the output</span><span lang=EN-GB
+
mso-ansi-language:EN-GB'>% xlabel('time');</span><span lang=EN-GB
style='font-family:"Courier New";mso-bidi-font-family:"Times New Roman";
style='font-family:"Courier New";mso-bidi-font-family:"Times New Roman";
mso-ansi-language:EN-GB'><o:p></o:p></span></p>
mso-ansi-language:EN-GB'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
-
lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";color:black;
+
style='font-size:10.0pt;font-family:"Courier New";color:forestgreen'>%
-
mso-ansi-language:EN-GB'>Z=[V(:,1),V(:,5),V(:,6),V(:,9)];</span><span
+
ylabel('concentrations');</span><span style='font-family:"Courier New";
-
lang=EN-GB style='font-family:"Courier New";mso-bidi-font-family:"Times New Roman";
+
mso-bidi-font-family:"Times New Roman"'><o:p></o:p></span></p>
-
mso-ansi-language:EN-GB'><o:p></o:p></span></p>
+
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
-
lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";color:black;
+
style='font-size:10.0pt;font-family:"Courier New";color:forestgreen'>% </span><span
-
mso-ansi-language:EN-GB'>figure;</span><span lang=EN-GB style='font-family:
+
style='font-family:"Courier New";mso-bidi-font-family:"Times New Roman"'><o:p></o:p></span></p>
-
"Courier New";mso-bidi-font-family:"Times New Roman";mso-ansi-language:EN-GB'><o:p></o:p></span></p>
+
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
-
lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";color:black;
+
style='font-size:10.0pt;font-family:"Courier New";color:forestgreen'>% figure;</span><span
-
mso-ansi-language:EN-GB'>plot(t,V');</span><span lang=EN-GB style='font-family:
+
style='font-family:"Courier New";mso-bidi-font-family:"Times New Roman"'><o:p></o:p></span></p>
-
"Courier New";mso-bidi-font-family:"Times New Roman";mso-ansi-language:EN-GB'><o:p></o:p></span></p>
+
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
-
lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";color:black;
+
style='font-size:10.0pt;font-family:"Courier New";color:forestgreen'>%
-
mso-ansi-language:EN-GB'>legend(</span><span lang=EN-GB style='font-size:10.0pt;
+
plot(t,[V(:,3),V(:,11)]);</span><span style='font-family:"Courier New";
-
font-family:"Courier New";color:#A020F0;mso-ansi-language:EN-GB'>'FlhDC'</span><span
+
mso-bidi-font-family:"Times New Roman"'><o:p></o:p></span></p>
-
lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";color:black;
+
 
-
mso-ansi-language:EN-GB'>,</span><span lang=EN-GB style='font-size:10.0pt;
+
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
-
font-family:"Courier New";color:#A020F0;mso-ansi-language:EN-GB'>'FliA'</span><span
+
lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";color:forestgreen;
-
lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";color:black;
+
mso-ansi-language:EN-GB'>% legend('flgA');</span><span lang=EN-GB
-
mso-ansi-language:EN-GB'>,</span><span lang=EN-GB style='font-size:10.0pt;
+
style='font-family:"Courier New";mso-bidi-font-family:"Times New Roman";
-
font-family:"Courier New";color:#A020F0;mso-ansi-language:EN-GB'>'FliL'</span><span
+
mso-ansi-language:EN-GB'><o:p></o:p></span></p>
-
lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";color:black;
+
-
mso-ansi-language:EN-GB'>,</span><span lang=EN-GB style='font-size:10.0pt;
+
-
font-family:"Courier New";color:#A020F0;mso-ansi-language:EN-GB'>'FlgA'</span><span
+
-
lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";color:black;
+
-
mso-ansi-language:EN-GB'>,</span><span lang=EN-GB style='font-size:10.0pt;
+
-
font-family:"Courier New";color:#A020F0;mso-ansi-language:EN-GB'>'FlhB'</span><span
+
-
lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";color:black;
+
-
mso-ansi-language:EN-GB'>,</span><span lang=EN-GB style='font-size:10.0pt;
+
-
font-family:"Courier New";color:#A020F0;mso-ansi-language:EN-GB'>'AHL
+
-
interieur'</span><span lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";
+
-
color:black;mso-ansi-language:EN-GB'>,</span><span lang=EN-GB style='font-size:
+
-
10.0pt;font-family:"Courier New";color:#A020F0;mso-ansi-language:EN-GB'>'AHL
+
-
ext'</span><span lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";
+
-
color:black;mso-ansi-language:EN-GB'>,</span><span lang=EN-GB style='font-size:
+
-
10.0pt;font-family:"Courier New";color:#A020F0;mso-ansi-language:EN-GB'>'mTetR'</span><span
+
-
lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";color:black;
+
-
mso-ansi-language:EN-GB'>,</span><span lang=EN-GB style='font-size:10.0pt;
+
-
font-family:"Courier New";color:#A020F0;mso-ansi-language:EN-GB'>'TetR'</span><span
+
-
lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";color:black;
+
-
mso-ansi-language:EN-GB'>);</span><span lang=EN-GB style='font-family:"Courier New";
+
-
mso-bidi-font-family:"Times New Roman";mso-ansi-language:EN-GB'><o:p></o:p></span></p>
+
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";color:forestgreen;
lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";color:forestgreen;
-
mso-ansi-language:EN-GB'>%legend('FlhDC','FlhB','AHL int','TetR');</span><span
+
mso-ansi-language:EN-GB'>% title('Test Synchronisation');</span><span
lang=EN-GB style='font-family:"Courier New";mso-bidi-font-family:"Times New Roman";
lang=EN-GB style='font-family:"Courier New";mso-bidi-font-family:"Times New Roman";
mso-ansi-language:EN-GB'><o:p></o:p></span></p>
mso-ansi-language:EN-GB'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
-
style='font-size:10.0pt;font-family:"Courier New";color:forestgreen'>% <span
+
style='font-size:10.0pt;font-family:"Courier New";color:forestgreen'>%
-
class=GramE>xlabel(</span>'Time');</span><span style='font-family:"Courier New";
+
xlabel('time');</span><span style='font-family:"Courier New";mso-bidi-font-family:
 +
"Times New Roman"'><o:p></o:p></span></p>
 +
 
 +
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
 +
style='font-size:10.0pt;font-family:"Courier New";color:forestgreen'>%
 +
ylabel('concentrations');</span><span style='font-family:"Courier New";
mso-bidi-font-family:"Times New Roman"'><o:p></o:p></span></p>
mso-bidi-font-family:"Times New Roman"'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
-
style='font-size:10.0pt;font-family:"Courier New";color:forestgreen'>% <span
+
style='font-size:10.0pt;font-family:"Courier New";color:forestgreen'>% </span><span
-
class=GramE>ylabel(</span>'Concentrations')</span><span style='font-family:
+
style='font-family:"Courier New";mso-bidi-font-family:"Times New Roman"'><o:p></o:p></span></p>
-
"Courier New";mso-bidi-font-family:"Times New Roman"'><o:p></o:p></span></p>
+
 
 +
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
 +
style='font-size:10.0pt;font-family:"Courier New";color:forestgreen'>% figure;</span><span
 +
style='font-family:"Courier New";mso-bidi-font-family:"Times New Roman"'><o:p></o:p></span></p>
 +
 
 +
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
 +
style='font-size:10.0pt;font-family:"Courier New";color:forestgreen'>%
 +
plot(t,[V(:,4),V(:,12)]);</span><span style='font-family:"Courier New";
 +
mso-bidi-font-family:"Times New Roman"'><o:p></o:p></span></p>
 +
 
 +
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
 +
style='font-size:10.0pt;font-family:"Courier New";color:forestgreen'>%
 +
legend('flhB');</span><span style='font-family:"Courier New";mso-bidi-font-family:
 +
"Times New Roman"'><o:p></o:p></span></p>
 +
 
 +
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
 +
style='font-size:10.0pt;font-family:"Courier New";color:forestgreen'>%
 +
title('Test Synchronisation');</span><span style='font-family:"Courier New";
 +
mso-bidi-font-family:"Times New Roman"'><o:p></o:p></span></p>
 +
 
 +
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
 +
style='font-size:10.0pt;font-family:"Courier New";color:forestgreen'>%
 +
xlabel('time');</span><span style='font-family:"Courier New";mso-bidi-font-family:
 +
"Times New Roman"'><o:p></o:p></span></p>
 +
 
 +
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
 +
style='font-size:10.0pt;font-family:"Courier New";color:forestgreen'>%
 +
ylabel('concentrations');</span><span style='font-family:"Courier New";
 +
mso-bidi-font-family:"Times New Roman"'><o:p></o:p></span></p>
<p class=MsoNormal><o:p>&nbsp;</o:p></p>
<p class=MsoNormal><o:p>&nbsp;</o:p></p>
Line 284: Line 493:
</html>
</html>
 +
 +
|}<br style="clear:both" />
|}<br style="clear:both" />

Latest revision as of 15:45, 8 August 2008

To go back to the previous page : Clic here.


% Main function for the simulations

% Main function for the simulations

close all;

%% File to use to obtain :

% 1 - The ouput of the system

% 2 - A visualization of that output

% 3 - The value of a criteria describing whether there are oscillations

global Ncell;

global Next;

tmax=50;

t=[0:0.1:tmax];

t2=t.*20/log(2);

V0=zeros(1,Next);

for i=1:Ncell

V0(8+8*(i-1))=0;

end

%V0=[0;0;0;0;0;0;0;1;0;0;0;0;0;0;0;1;0]; %Initial state

V=simul(t,V0);%Numerical simulation of the system

% Visualization of the output

Z1=[V(:,8)];

Z2=[V(:,2:4)];

% Z2=[V(:,9),V(:,10),V(:,11),V(:,12),V(:,13),V(:,14),V(:,15),V(:,16)];

% Z3=[V(:,17)];

%% tests oscill & FIFO

plot(t2,Z1);

legend('FlhDC');

figure;

plot(t2,Z2');

legend('FliL','FlgA','FlhB');

% title('Cell1');

%xlabel('time (min)');

% ylabel('concentrations');

%

% figure;

% plot(t,Z2);

% legend('FliA','FliL','FlgA','FlhB','AHL interieur','mTetR','TetR','flhDC');

% title('cell2');

% xlabel('time');

% ylabel('concentrations');

%

% figure;

% plot(t,Z3');

% legend('AHL ext');

% title('2 cells model');

% xlabel('time');

% ylabel('concentrations');

%% tests synchronisation

% figure;

% plot(t,[V(:,2),V(:,10)]');

% legend('fliL');

% title('Test Synchronisation');

% xlabel('time');

% ylabel('concentrations');

%

% figure;

% plot(t,[V(:,3),V(:,11)]);

% legend('flgA');

% title('Test Synchronisation');

% xlabel('time');

% ylabel('concentrations');

%

% figure;

% plot(t,[V(:,4),V(:,12)]);

% legend('flhB');

% title('Test Synchronisation');

% xlabel('time');

% ylabel('concentrations');