var s_account="mathmain"
var s=s_gi(s_account)
s.dynamicAccountSelection=true
s.dynamicAccountList="mathdev=www-external-dev.,www-external-test.,www-external-stage.,www-external-dev2.,www-external-test2.,www-external-perf.;mathIntranet=www-internal.,www-internal-dev.,www-internal-test.,www-internal-stage.,internal-search.,www-intranet-dev.,www-internal-perf.,www-internal-au.,www-internal-fr.,www-internal-de.,www-internal-it.,www-internal-kr.,www-internal-nl.,www-internal-es.,www-internal-se.,www-internal-ch.,www-internal-uk.,www-internal-uk-dev.,www-internal-se.,www-internal-eu.;mathExtra=distribs/;mathGlobal,mathAU=.mathworks.com.au;mathGlobal,mathUK=.mathworks.co.uk;mathGlobal,mathCH=.mathworks.ch;mathGlobal,mathES=.mathworks.es;mathGlobal,mathNordic=.mathworks.se;mathGlobal,mathKR=.mathworks.co.kr;mathGlobal,mathIT=.mathworks.it;mathGlobal,mathCN=.mathworks.cn;mathGlobal,mathDE=.mathworks.de;mathGlobal,mathFR=.mathworks.fr;mathGlobal,mathNL=.mathworks.nl;mathGlobal,mathTools=.mathtools.net;mathGlobal,mathmain=.mathworks.com,mathworks.demoservers.com,clients.cerida.com;mathGlobal,mathmain,mathmathwebex=mathworksevents.webex.com;mathpolyspace=polyspace.com,polyspace.fr,polyspace.eu,polyspace.it,polyspace.co.il,polyspace.co.uk,polyspace.de,polyspace.be,polyspace.org,scaservices.com,polyspace.cn,silicomp-software-validation.com,my-polyspace.com,polyspace-customer-center.com,polyspace-extranet.com"
s.dynamicAccountMatch=window.location.host+window.location.pathname
s.currencyCode="USD"
s.trackDownloadLinks=true
s.trackExternalLinks=true
s.trackInlineStats=true
s.linkDownloadFileTypes="exe,zip,wav,mp3,mov,mpg,avi,wmv,doc,pdf,xls,wrf,sea"
s.linkInternalFilters="javascript:,mathworks.com"
s.linkLeaveQueryString=true
s.linkTrackVars="None"
s.linkTrackEvents="None"
s.visitorNamespace="mathworks"
s.cookieDomainPeriods="2"
s.p_wl=''+window.location
if(s.p_wl.indexOf(".co.uk")>-1 || s.p_wl.indexOf(".com.au")>-1 || (s.p_wl.indexOf(".co.kr")>-1))
s.cookieDomainPeriods="3"
s.siteID=window.location.host;
s.defaultPage="index.html";
s.queryVarsList="rp,bb,mwoffice,theAction,date,location,lang,format,file,video,14,9,p,objectId,objectType,product,sec,eventid,id,document,cid,uri,parenttopic,courseNum,view,by,tab,db,prox,rorder,rprox,rdfreq,rwfreq,rlead,sufs,order,is_summary_on,ResultCount,query,submitButtonName,task,type,app_id,prod_type,ind,prod,tmw_product_id,comp,app_name,app_type";
s.pathExcludeDelim=";";
s.pathConcatDelim="::";
s.usePlugins=true
function s_doPlugins(s) {
if (s.c_r('top_real_referrer')==top.real_referrer && (s.getFolderName(4)=='techdoc' || s.getFolderName(4)=='toolbox')) { s.referrer=document.referrer; }
else { if (s.getFolderName(4)=='techdoc' || s.getFolderName(4)=='toolbox') { s.referrer=top.real_referrer; s.c_w('top_real_referrer',top.real_referrer,0); }}
if ((!window.s.pageType) && (!window.s.pageName || s.pageName==""))
s.pageName=s.getPageName();
s.server=window.location.host;
if (s.getFolderName(1) != '') { s.channel=location.pathname.substring(0,location.pathname.lastIndexOf('/')); }
else { s.channel=window.location.host +"::"+ 'homepage'; }
if (s.channel=='/products/image' || s.channel=='/products/imageb' || s.channel=='/products/simbiology' || s.channel=='/products/simbiologyb') { s.eVar10='productpagetest'; }
if (s.channel=='/products/image' && document.cookie.match('s_prodpagetest_imgA')) { s.eVar1='prodpagetest_imgA'; s.prop23='prodpagetest_imgA'; }
else { if (s.channel=='/products/image') { s.c_w('s_prodpagetest_imgA','s_prodpagetest_imgA',0); s.eVar1='prodpagetest_imgA'; s.prop23='prodpagetest_imgA'; }}
if (s.channel=='/products/imageb' && document.cookie.match('s_prodpagetest_imgB')) { s.eVar1='prodpagetest_imgB'; s.prop23='prodpagetest_imgB'; }
else { if (s.channel=='/products/imageb') { s.c_w('s_prodpagetest_imgB','s_prodpagetest_imgB',0); s.eVar1='prodpagetest_imgB'; s.prop23='prodpagetest_imgB'; }}
if (s.channel=='/products/simbiology' && document.cookie.match('s_prodpagetest_simbioA')) { s.eVar1='prodpagetest_simbioA'; s.prop23='prodpagetest_simbioA'; }
else { if (s.channel=='/products/simbiology') { s.c_w('s_prodpagetest_simbioA','s_prodpagetest_simbioA',0); s.eVar1='prodpagetest_simbioA'; s.prop23='prodpagetest_simbioA'; }}
if (s.channel=='/products/simbiologyb' && document.cookie.match('s_prodpagetest_simbioB')) { s.eVar1='prodpagetest_simbioB'; s.prop23='prodpagetest_simbioB'; }
else { if (s.channel=='/products/simbiologyb') { s.c_w('s_prodpagetest_simbioB','s_prodpagetest_simbioB',0); s.eVar1='prodpagetest_simbioB'; s.prop23='prodpagetest_simbioB'; }}
if (s.getQueryParam('s_cid') != '') { s.campaign=s.getQueryParam('s_cid'); }
if (s.campaign != '') {s.prop1=s.getAndPersistValue(s.campaign,'s_cmp_pages',0); }
if (s.prop1 != '') { s.prop2=s.prop1 +"::"+ s.pageName; }
else { s.prop2=''; }
if (s.getQueryParam('s_v1') != '') { s.eVar1=s.getQueryParam('s_v1'); }
if (s.eVar1 != '') { s.prop12=s.getAndPersistValue(s.eVar1,'s_v1_pages',0); }
else { s.prop12=''; }
if (s.prop12 != '') { s.prop13=s.prop12 +"::"+ s.pageName; }
else { s.prop13=''; }
if (s.getQueryParam('s_sid') != '') { s.eVar2=s.getQueryParam('s_sid'); }
if (s.getQueryParam('prodCode') != '') { s.products=s.getQueryParam('prodCode'); }
if (s.getQueryParam('ref') != '') { s.eVar2=s.getQueryParam('ref'); s.prop10=s.getQueryParam('ref'); }
if (s.getQueryParam('query') != '') { s.eVar3=s.getQueryParam('query'); s.prop3=s.getQueryParam('query'); }
if (document.cookie.match('MW_AL')) { s.eVar4='logged in'; }
else { s.eVar4='not logged in'; }
if (document.cookie.match('MW_AL')) { s.eVar5=s.c_r('MW_AL'); s.prop16=s.c_r('MW_AL'); }
s.eVar6=s.getNewRepeat();
s.eVar7=s.getVisitNum();
s.eVar9=s.getDaysSinceLastVisit();
s.prop4=s.getPageName();
if (s.getFolderName(1) != '') { s.prop5=s.getFolderName(1); }
if (s.getFolderName(1) != '' && s.getFolderName(2) != '') { s.prop6=s.getFolderName(1)+"/"+s.getFolderName(2); }
if (s.getFolderName(1) != '' && s.getFolderName(2) != '' && s.getFolderName(3) != '') { s.prop7=s.getFolderName(1)+"/"+s.getFolderName(2)+"/"+s.getFolderName(3); }
if (window.s.pageType=='errorPage') { s.channel='404-pagenotfound' + location.pathname.substring(0,location.pathname.lastIndexOf('/')); }
if (s.getPageName() == window.location.host + '::' + 'access' + '::' + 'pagenotfound.html') { s.channel='404-pagenotfound/documentation'; }
if (window.location.host=='newsreader.mathworks.com') { s.channel='/matlabcentral/newsreader'; s.prop5='matlabcentral'; s.prop6='matlabcentral/newsreader'; }
if (window.location.host=='webchat.mathworks.com') { s.channel='/matlabcentral/newsreader'; s.prop5='matlabcentral'; s.prop6='matlabcentral/newsreader'; }
if (window.location.host=='blogs.mathworks.com') { s.channel='/matlabcentral/blogs'; s.prop5='matlabcentral'; s.prop6='matlabcentral/blogs'; s.prop7='matlabcentral/blogs/' + s.getFolderName(1); }
if (window.location.host=='matlabwiki.mathworks.com') { s.channel='/matlabcentral/matlabwiki'; s.prop5='matlabcentral'; s.prop6='matlabcentral/matlabwiki'; }
if (window.location.host=='mathworks.demoservers.com') { s.channel='products/onlinetrials'; s.prop5='products'; s.prop6='products/onlinetrials'; }
if (window.location.pathname.search("/contest/") != -1) { s.channel='/matlabcentral/contest'; s.prop5='matlabcentral'; s.prop6='matlabcentral/contest'; }
if ((window.location.pathname.search("/cgi-bin/texis/webinator/") != -1) || (window.location.pathname.search("/search/") != -1)) { s.channel='/sitesearch'; s.prop5='sitesearch'; s.prop6=''; s.prop7=''; }
if (document.URL.search("/demos.html") != -1) { s.prop7=s.getFolderName(1)+"/"+s.getFolderName(2)+"/"+"demos"; s.prop19="demos/"+s.getFolderName(2); }
if (document.URL.search("/product/product.html") != -1) { s.prop7=s.getFolderName(1)+"/"+s.getFolderName(2)+"/"+s.getQueryParam('product'); }
if (document.URL.search("/support/product/so