20.07.2013 Views

Notes on computational linguistics.pdf - UCLA Department of ...

Notes on computational linguistics.pdf - UCLA Department of ...

Notes on computational linguistics.pdf - UCLA Department of ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Stabler - Lx 185/209 2003<br />

octave:18> result=zeros(10,4)<br />

result =<br />

0 0 0 0<br />

0 0 0 0<br />

0 0 0 0<br />

0 0 0 0<br />

0 0 0 0<br />

0 0 0 0<br />

0 0 0 0<br />

0 0 0 0<br />

0 0 0 0<br />

0 0 0 0<br />

octave:19> for x=1:10<br />

> result(x,:)= [x,(i*(t**x))]<br />

> endfor<br />

octave:20> result<br />

result =<br />

1.000000 0.510000 0.280000 0.210000<br />

2.000000 0.385000 0.298000 0.317000<br />

3.000000 0.299300 0.285600 0.415100<br />

4.000000 0.238070 0.259780 0.502150<br />

5.000000 0.192627 0.229460 0.577913<br />

6.000000 0.157785 0.199147 0.643068<br />

7.000000 0.130364 0.170960 0.698676<br />

8.000000 0.108351 0.145745 0.745904<br />

9.000000 0.090420 0.123692 0.785888<br />

10.000000 0.075663 0.104668 0.819669<br />

140

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!