Team:Paris/Modeling/plot

From 2008.igem.org

(Difference between revisions)
(New page: {{Paris/Menu}} {|cellspacing="5" cellpadding="10" style="background:#649CD7; width: 965px;" |-valign="top" |style="background:#ffffff"| |}<br style="clear:both" />)
 
(3 intermediate revisions not shown)
Line 3: Line 3:
|-valign="top"
|-valign="top"
|style="background:#ffffff"|
|style="background:#ffffff"|
 +
 +
To go back to the previous page : [[Team:Paris/Modeling#Corresponding codes|Clic here]].
 +
 +
 +
<html xmlns:v="urn:schemas-microsoft-com:vml"
 +
xmlns:o="urn:schemas-microsoft-com:office:office"
 +
xmlns:w="urn:schemas-microsoft-com:office:word"
 +
xmlns="http://www.w3.org/TR/REC-html40">
 +
 +
<head>
 +
<meta http-equiv=Content-Type content="text/html; charset=windows-1252">
 +
<meta name=ProgId content=Word.Document>
 +
<meta name=Generator content="Microsoft Word 11">
 +
<meta name=Originator content="Microsoft Word 11">
 +
<link rel=File-List href="simul_fichiers/filelist.xml">
 +
<title>% Main function for the simulations</title>
 +
<!--[if gte mso 9]><xml>
 +
<o:DocumentProperties>
 +
  <o:Author> </o:Author>
 +
  <o:LastAuthor> </o:LastAuthor>
 +
  <o:Revision>1</o:Revision>
 +
  <o:TotalTime>0</o:TotalTime>
 +
  <o:Created>2008-08-08T15:37:00Z</o:Created>
 +
  <o:LastSaved>2008-08-08T15:37:00Z</o:LastSaved>
 +
  <o:Pages>1</o:Pages>
 +
  <o:Words>233</o:Words>
 +
  <o:Characters>1282</o:Characters>
 +
  <o:Company> Supélec</o:Company>
 +
  <o:Lines>10</o:Lines>
 +
  <o:Paragraphs>3</o:Paragraphs>
 +
  <o:CharactersWithSpaces>1512</o:CharactersWithSpaces>
 +
  <o:Version>11.6408</o:Version>
 +
</o:DocumentProperties>
 +
</xml><![endif]--><!--[if gte mso 9]><xml>
 +
<w:WordDocument>
 +
  <w:HyphenationZone>21</w:HyphenationZone>
 +
  <w:PunctuationKerning/>
 +
  <w:ValidateAgainstSchemas/>
 +
  <w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid>
 +
  <w:IgnoreMixedContent>false</w:IgnoreMixedContent>
 +
  <w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText>
 +
  <w:Compatibility>
 +
  <w:BreakWrappedTables/>
 +
  <w:SnapToGridInCell/>
 +
  <w:WrapTextWithPunct/>
 +
  <w:UseAsianBreakRules/>
 +
  <w:DontGrowAutofit/>
 +
  </w:Compatibility>
 +
  <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
 +
</w:WordDocument>
 +
</xml><![endif]--><!--[if gte mso 9]><xml>
 +
<w:LatentStyles DefLockedState="false" LatentStyleCount="156">
 +
</w:LatentStyles>
 +
</xml><![endif]-->
 +
<style>
 +
<!--
 +
/* Style Definitions */
 +
p.MsoNormal, li.MsoNormal, div.MsoNormal
 +
{mso-style-parent:"";
 +
margin:0cm;
 +
margin-bottom:.0001pt;
 +
mso-pagination:widow-orphan;
 +
font-size:12.0pt;
 +
font-family:"Times New Roman";
 +
mso-fareast-font-family:"Times New Roman";}
 +
@page Section1
 +
{size:612.0pt 792.0pt;
 +
margin:70.85pt 70.85pt 70.85pt 70.85pt;
 +
mso-header-margin:36.0pt;
 +
mso-footer-margin:36.0pt;
 +
mso-paper-source:0;}
 +
div.Section1
 +
{page:Section1;}
 +
-->
 +
</style>
 +
<!--[if gte mso 10]>
 +
<style>
 +
/* Style Definitions */
 +
table.MsoNormalTable
 +
{mso-style-name:"Tableau Normal";
 +
mso-tstyle-rowband-size:0;
 +
mso-tstyle-colband-size:0;
 +
mso-style-noshow:yes;
 +
mso-style-parent:"";
 +
mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
 +
mso-para-margin:0cm;
 +
mso-para-margin-bottom:.0001pt;
 +
mso-pagination:widow-orphan;
 +
font-size:10.0pt;
 +
font-family:"Times New Roman";
 +
mso-ansi-language:#0400;
 +
mso-fareast-language:#0400;
 +
mso-bidi-language:#0400;}
 +
</style>
 +
<![endif]--><!--[if gte mso 9]><xml>
 +
<o:shapedefaults v:ext="edit" spidmax="2050"/>
 +
</xml><![endif]--><!--[if gte mso 9]><xml>
 +
<o:shapelayout v:ext="edit">
 +
  <o:idmap v:ext="edit" data="1"/>
 +
</o:shapelayout></xml><![endif]-->
 +
</head>
 +
 +
<body lang=FR style='tab-interval:35.4pt'>
 +
 +
<div class=Section1>
 +
 +
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
 +
style='font-size:10.0pt;font-family:"Courier New";color:forestgreen'>% Main
 +
function for the simulations</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'>close </span><span
 +
style='font-size:10.0pt;font-family:"Courier New";color:#A020F0'>all</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'>%% File to
 +
use to obtain :</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>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>
 +
 +
<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'>% xlabel('time');</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'>% ylabel('concentrations');</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'>% </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'>% figure;</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'>% 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>
 +
 +
<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'>% legend('AHL ext');</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('2 cells model');</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'>% xlabel('time');</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'>% ylabel('concentrations');</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'><span style='mso-spacerun:yes'> </span></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'>%% tests synchronisation</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'>% figure;</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'>% plot(t,[V(:,2),V(:,10)]');</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'>% 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";
 +
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'>% xlabel('time');</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
 +
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><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,[V(:,3),V(:,11)]);</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'>% legend('flgA');</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";
 +
mso-ansi-language:EN-GB'><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 style='mso-layout-grid-align:none;text-autospace:none'><span
 +
style='font-size:10.0pt;font-family:"Courier New";color:forestgreen'>% </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,[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>
 +
 +
</div>
 +
 +
</body>
 +
 +
</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');