?? question2.html
字號:
<html xmlns:mwsh="http://www.mathworks.com/namespace/mcode/v1/syntaxhighlight.dtd"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <!--This HTML is auto-generated from an M-file.To make changes, update the M-file and republish this document. --> <title>question2</title> <meta name="generator" content="MATLAB 7.1"> <meta name="date" content="2008-12-10"> <meta name="m-file" content="question2"><style>body { background-color: white; margin:10px;}h1 { color: #990000; font-size: x-large;}h2 { color: #990000; font-size: medium;}/* Make the text shrink to fit narrow windows, but not stretch too far in wide windows. On Gecko-based browsers, the shrink-to-fit doesn't work. */ p,h1,h2,div.content div { /* for MATLAB's browser */ width: 600px; /* for Mozilla, but the "width" tag overrides it anyway */ max-width: 600px; /* for IE */ width:expression(document.body.clientWidth > 620 ? "600px": "auto" );}pre.codeinput { background: #EEEEEE; padding: 10px;}span.keyword {color: #0000FF}span.comment {color: #228B22}span.string {color: #A020F0}span.untermstring {color: #B20000}span.syscmd {color: #B28C00}pre.codeoutput { color: #666666; padding: 10px;}pre.error { color: red;}p.footer { text-align: right; font-size: xx-small; font-weight: lighter; font-style: italic; color: gray;} </style></head> <body> <div class="content"><pre class="codeinput">par.cellradius=1000; par.sps=1; par.km=1; par.lm=1; par.ncluster=4; [xyb,fib,rombvec]=crecells(par.cellradius,par.sps,par.km,par.lm,par.ncluster); figure(1); axis=[-10000 10000 -8000 8000] plothex(xyb,fib); par.amean=2; par.vmean=1; par.dt=10; nmob=100; xym=nans(nmob,1); xyv=nans(nmob,1); m=(1:nmob).'; [xym,xyv]=mobmove(xym,xyv,par.amean,par.vmean,par.dt,rombvec); hold <span class="string">on</span>; plot(xym,<span class="string">'b*'</span>); hold <span class="string">off</span>;</pre><pre class="codeoutput">axis = -10000 10000 -8000 8000</pre><p class="footer"><br> Published with MATLAB® 7.1<br></p> </div> <!--##### SOURCE BEGIN #####par.cellradius=1000;
par.sps=1;
par.km=1;
par.lm=1;
par.ncluster=4;
[xyb,fib,rombvec]=crecells(par.cellradius,par.sps,par.km,par.lm,par.ncluster);
figure(1);
axis=[-10000 10000 -8000 8000]
plothex(xyb,fib);
par.amean=2;
par.vmean=1;
par.dt=10;
nmob=100;
xym=nans(nmob,1);
xyv=nans(nmob,1);
m=(1:nmob).';
[xym,xyv]=mobmove(xym,xyv,par.amean,par.vmean,par.dt,rombvec);
hold on;
plot(xym,'b*');
hold off;
##### SOURCE END #####--> </body></html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -