Difference between revisions of "Team:Exeter/Modelling parameterscan"

(Created page with "{{Template_All_Teams}} <html><head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <!-- This HTML was auto-generated from MATLAB code. To make ch...")
 
Line 5: Line 5:
 
This HTML was auto-generated from MATLAB code.
 
This HTML was auto-generated from MATLAB code.
 
To make changes, update the MATLAB code and republish this document.
 
To make changes, update the MATLAB code and republish this document.
       --><title>Parameter Scanning</title><meta name="generator" content="MATLAB 8.5"><link rel="schema.DC" href="http://purl.org/dc/elements/1.1/"><meta name="DC.date" content="2015-09-13"><meta name="DC.source" content="parameterscan_publish.m"><style type="text/css">
+
       --><title>Parameter Scanning</title><meta name="generator" content="MATLAB 8.5"><link rel="schema.DC" href="http://purl.org/dc/elements/1.1/"><meta name="DC.date" content="2015-09-19"><meta name="DC.source" content="parameterscantemps_publish.m"><style type="text/css">
 
html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,font,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td{margin:0;padding:0;border:0;outline:0;font-size:100%;vertical-align:baseline;background:transparent}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:'';content:none}:focus{outine:0}ins{text-decoration:none}del{text-decoration:line-through}table{border-collapse:collapse;border-spacing:0}
 
html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,font,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td{margin:0;padding:0;border:0;outline:0;font-size:100%;vertical-align:baseline;background:transparent}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:'';content:none}:focus{outine:0}ins{text-decoration:none}del{text-decoration:line-through}table{border-collapse:collapse;border-spacing:0}
  
Line 65: Line 65:
  
  
   </style></head><body><div class="content"><h1>Parameter Scanning</h1><p>A breif section of code that will call our simulation function and scan over a range for a given parameter. See <a href="https://2015.igem.org/Team:Exeter/Modelling_Parameter">https://2015.igem.org/Team:Exeter/Modelling_Parameter</a> for more information.</p><pre class="codeinput"><span class="keyword">function</span> parameterscan()
+
   </style></head><body><div class="content"><h1>Parameter Scanning</h1><p>A brief section of code that will call our simulation function and scan over a range for a given parameter. See <a href="https://2015.igem.org/Team:Exeter/Modelling_Parameter">https://2015.igem.org/Team:Exeter/Modelling_Parameter</a> for more information.</p><pre class="codeinput"><span class="keyword">function</span> parameterscan()
     GFPovertime=[];
+
     GFPovertemps=[];
     T=277:0.5:313; <span class="comment">%4 degrees to 40</span>
+
     T=273:5:343; <span class="comment">%0 degrees to 69</span>
     <span class="keyword">for</span> i=1:size(T,2);
+
    r=[20 100 200 400];
        GFPovertime(i)=BM_03_08_extralinefix(2,2,5000,T(i)+277);
+
    t=[20];
 +
    Doubleparameterscan=[];
 +
 
 +
     <span class="keyword">for</span> j=1:size(r,2);
 +
        <span class="keyword">for</span> i=1:size(T,2);
 +
            Doubleparameterscan(i,j)=BM_07_09_insilicobinding(t(1),r(j),1000,T(i));
 +
    <span class="comment">%        xtemps[i]=char(T(i)-273);</span>
 +
        <span class="keyword">end</span>
 
     <span class="keyword">end</span>
 
     <span class="keyword">end</span>
    figure()
+
 
     plot(T,GFPovertime, <span class="string">'k'</span>)
+
 
     hold <span class="string">on</span>
+
     savefile= <span class="string">'Doubleparameterscan'</span>;
    xlabel(<span class="string">'Temperature (K)'</span>)
+
     save(savefile, <span class="string">'Doubleparameterscan'</span>)
     ylabel(<span class="string">'GFPcount'</span>)
+
     Doubleparameterscan; <span class="comment">%Use this saved array to plot a Surface</span>
 
<span class="keyword">end</span>
 
<span class="keyword">end</span>
 
</pre><p class="footer"><br><a href="http://www.mathworks.com/products/matlab/">Published with MATLAB&reg; R2015a</a><br></p></div><!--
 
</pre><p class="footer"><br><a href="http://www.mathworks.com/products/matlab/">Published with MATLAB&reg; R2015a</a><br></p></div><!--
 
##### SOURCE BEGIN #####
 
##### SOURCE BEGIN #####
 
%% Parameter Scanning
 
%% Parameter Scanning
% A breif section of code that will call our simulation function and scan
+
% A brief section of code that will call our simulation function and scan
 
% over a range for a given parameter.  
 
% over a range for a given parameter.  
 
% See <https://2015.igem.org/Team:Exeter/Modelling_Parameter> for more information.
 
% See <https://2015.igem.org/Team:Exeter/Modelling_Parameter> for more information.
  
 
function parameterscan()
 
function parameterscan()
     GFPovertime=[];
+
     GFPovertemps=[];
     T=277:0.5:313; %4 degrees to 40
+
     T=273:5:343; %0 degrees to 69
     for i=1:size(T,2);
+
    r=[20 100 200 400];
        GFPovertime(i)=BM_03_08_extralinefix(2,2,5000,T(i)+277);
+
    t=[20];
 +
    Doubleparameterscan=[];
 +
   
 +
     for j=1:size(r,2);
 +
        for i=1:size(T,2);
 +
            Doubleparameterscan(i,j)=BM_07_09_insilicobinding(t(1),r(j),1000,T(i));  
 +
    %        xtemps[i]=char(T(i)-273);
 +
        end
 
     end
 
     end
     figure()
+
 
     plot(T,GFPovertime, 'k')
+
      
     hold on
+
     savefile= 'Doubleparameterscan';
    xlabel('Temperature (K)')
+
     save(savefile, 'Doubleparameterscan')
     ylabel('GFPcount')
+
     Doubleparameterscan; %Use this saved array to plot a Surface
 
end
 
end
  
 
##### SOURCE END #####
 
##### SOURCE END #####
 
--></body></html>
 
--></body></html>

Revision as of 03:34, 19 September 2015

Parameter Scanning

Parameter Scanning

A brief section of code that will call our simulation function and scan over a range for a given parameter. See https://2015.igem.org/Team:Exeter/Modelling_Parameter for more information.

function parameterscan()
    GFPovertemps=[];
    T=273:5:343; %0 degrees to 69
    r=[20 100 200 400];
    t=[20];
    Doubleparameterscan=[];

    for j=1:size(r,2);
        for i=1:size(T,2);
            Doubleparameterscan(i,j)=BM_07_09_insilicobinding(t(1),r(j),1000,T(i));
    %         xtemps[i]=char(T(i)-273);
        end
    end


    savefile= 'Doubleparameterscan';
    save(savefile, 'Doubleparameterscan')
    Doubleparameterscan; %Use this saved array to plot a Surface
end