home *** CD-ROM | disk | FTP | other *** search
Unknown | 1997-06-05 | 748 b |
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was not able to be converted.
This format is not currently supported by dexvert.
Confidence | Program | Detection | Match Type | Support
|
---|
10%
| dexvert
| Truevision Targa Graphic (image/tga)
| magic
| Supported |
100%
| file
| Targa image data - Map 65536 x 65536 x 1 +5292
| default (weak)
| |
99%
| file
| data
| default
| |
100%
| gt2
| Icon Datei mit 7038 Bild(ern)
| default (weak)
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 00 01 00 7e 1b 00 00 | ac 14 00 00 00 00 00 00 |....~...|........|
|00000010| 01 00 00 00 00 00 00 00 | 00 00 02 00 00 00 00 00 |........|........|
|00000020| 00 00 01 00 00 00 ff 7b | 02 25 20 47 65 74 20 74 |.......{|.% Get t|
|00000030| 68 65 20 61 64 6a 61 63 | 65 6e 63 79 20 6c 69 73 |he adjac|ency lis|
|00000040| 74 20 61 6e 64 20 63 6f | 6e 76 65 72 74 20 69 74 |t and co|nvert it|
|00000050| 20 74 6f 20 61 20 4d 61 | 74 6c 61 62 20 73 70 61 | to a Ma|tlab spa|
|00000060| 72 73 65 20 6d 61 74 72 | 69 78 0d 0a 41 44 4a 20 |rse matr|ix..ADJ |
|00000070| 3d 20 73 70 63 6f 6e 76 | 65 72 74 28 5b 69 6e 30 |= spconv|ert([in0|
|00000080| 20 6f 6e 65 73 28 31 38 | 30 2c 31 29 5d 29 0d 0a | ones(18|0,1)])..|
|00000090| 0d 0a 25 20 47 65 74 20 | 74 68 65 20 58 59 5a 20 |..% Get |the XYZ |
|000000a0| 63 6f 6f 72 64 69 6e 61 | 74 65 73 20 6f 66 20 63 |coordina|tes of c|
|000000b0| 61 72 62 6f 6e 20 61 74 | 6f 6d 73 20 69 6e 20 74 |arbon at|oms in t|
|000000c0| 68 65 20 43 36 30 20 6d | 6f 6c 65 63 75 6c 65 0d |he C60 m|olecule.|
|000000d0| 0a 58 59 5a 20 3d 20 69 | 6e 31 0d 0a 0d 0a 25 20 |.XYZ = i|n1....% |
|000000e0| 57 65 27 6c 6c 20 64 72 | 61 77 20 74 68 65 20 74 |We'll dr|aw the t|
|000000f0| 77 6f 20 22 68 61 6c 76 | 65 73 22 20 6f 66 20 74 |wo "halv|es" of t|
|00000100| 68 65 20 6d 6f 6c 65 63 | 75 6c 65 20 73 65 70 61 |he molec|ule sepa|
|00000110| 72 61 74 65 6c 79 0d 0a | 25 20 28 61 6e 64 20 69 |rately..|% (and i|
|00000120| 6e 20 64 69 66 66 65 72 | 65 6e 74 20 63 6f 6c 6f |n differ|ent colo|
|00000130| 72 73 29 2e 20 54 68 65 | 20 73 70 61 72 73 65 20 |rs). The| sparse |
|00000140| 6d 61 74 72 69 78 20 68 | 41 44 4a 0d 0a 25 20 20 |matrix h|ADJ..% |
|00000150| 63 6f 72 72 65 73 70 6f | 6e 64 73 20 74 6f 20 6f |correspo|nds to o|
|00000160| 6e 65 20 68 61 6c 66 20 | 6f 66 20 74 68 65 20 6d |ne half |of the m|
|00000170| 6f 6c 65 63 75 6c 65 2e | 0d 0a 68 41 44 4a 20 3d |olecule.|..hADJ =|
|00000180| 20 73 70 61 72 73 65 28 | 36 30 2c 36 30 29 3b 0d | sparse(|60,60);.|
|00000190| 0a 6e 20 3d 20 33 31 3a | 36 30 3b 0d 0a 68 41 44 |.n = 31:|60;..hAD|
|000001a0| 4a 28 6e 2c 6e 29 20 3d | 20 41 44 4a 28 6e 2c 6e |J(n,n) =| ADJ(n,n|
|000001b0| 29 3b 0d 0a 0d 0a 25 20 | 57 65 27 6c 6c 20 63 6f |);....% |We'll co|
|000001c0| 6e 73 74 72 75 63 74 20 | 74 68 65 20 70 6c 6f 74 |nstruct |the plot|
|000001d0| 20 75 73 69 6e 67 20 74 | 77 6f 20 63 61 6c 6c 73 | using t|wo calls|
|000001e0| 20 74 6f 20 4d 61 74 6c | 61 62 27 73 20 67 70 6c | to Matl|ab's gpl|
|000001f0| 6f 74 0d 0a 25 20 66 75 | 6e 63 74 69 6f 6e 20 2d |ot..% fu|nction -|
|00000200| 20 65 61 63 68 20 63 61 | 6c 6c 20 64 72 61 77 69 | each ca|ll drawi|
|00000210| 6e 67 20 6f 6e 65 20 68 | 61 6c 66 20 6f 66 20 74 |ng one h|alf of t|
|00000220| 68 65 20 6d 6f 6c 65 63 | 75 6c 65 2e 0d 0a 67 70 |he molec|ule...gp|
|00000230| 6c 6f 74 28 68 41 44 4a | 2c 58 59 5a 2c 27 6d 2d |lot(hADJ|,XYZ,'m-|
|00000240| 27 29 3b 0d 0a 61 78 69 | 73 28 27 65 71 75 61 6c |');..axi|s('equal|
|00000250| 27 2c 27 6f 66 66 27 29 | 0d 0a 74 69 74 6c 65 28 |','off')|..title(|
|00000260| 27 52 6f 74 61 74 69 6e | 67 20 42 75 63 6b 79 62 |'Rotatin|g Buckyb|
|00000270| 61 6c 6c 27 29 0d 0a 68 | 6f 6c 64 20 6f 6e 0d 0a |all')..h|old on..|
|00000280| 67 70 6c 6f 74 28 41 44 | 4a 2d 68 41 44 4a 2c 58 |gplot(AD|J-hADJ,X|
|00000290| 59 5a 2c 27 63 2d 27 29 | 3b 0d 0a 68 6f 6c 64 20 |YZ,'c-')|;..hold |
|000002a0| 6f 66 66 20 03 69 6e 30 | 04 6f 75 74 30 03 69 6e |off .in0|.out0.in|
|000002b0| 31 04 6f 75 74 31 03 69 | 6e 32 04 6f 75 74 32 03 |1.out1.i|n2.out2.|
|000002c0| 69 6e 33 04 6f 75 74 33 | 03 69 6e 34 04 6f 75 74 |in3.out3|.in4.out|
|000002d0| 34 03 69 6e 35 04 6f 75 | 74 35 03 69 6e 36 04 6f |4.in5.ou|t5.in6.o|
|000002e0| 75 74 36 03 69 6e 37 04 | 6f 75 74 37 |ut6.in7.|out7 |
+--------+-------------------------+-------------------------+--------+--------+