Info

This question is closed. Reopen it to edit or answer.

I want to produce 360 different text file that the line 102 in following text that start with *tr1 changes such-that A and D change from 0:360,B changes 90:-270 , C changes 90:450 and the other parameter keep unchanged in every text output file.

1 view (last 30 days)
ct1
c *****cell card***** $ Body tissue(water)
2 0 -20 -21 22 fill=1 $ Gantry aperture(air)
3 3 -1.785000 -30 -31 32 u=1 $ Bone Equivalent Plastic
4 4 -0.920000 -40 -41 42 u=1 $ Tissue, Adipose
5 5 -1.050000 -50 -51 52 u=1 $ Tissue, Lung
6 0 -10 -11 12 (30:31:-32) (40:41:-42)&
(50:51:-52) u=1 $ Body tissue(water)
7 0 (10:11:-12) u=1
c (90:-91:92:-93:94:-95) (100:-101:102:-103:104:-105)
c 13 7 -11.35 -90 91 -92 93 -94 95
c 14 7 -11.35 -100 101 -102 103 -104 105
19 6 -7.9 -200 $ cdwo4 detector
20 0 200 (20:21:-22) -300
21 0 300
C *****surface card*****
10 1 cz 15
11 1 pz 45
12 1 pz -45
20 1 cz 34
21 1 pz 50
22 1 pz -50
30 1 c/z -7 5 4
31 1 pz 42
32 1 pz -42
40 1 c/z 8.5 5 1.5
41 1 pz 43
42 1 pz -43
50 1 c/z 2 -7 2
51 1 pz 41
52 1 pz -41
60 cz 60
61 pz 100
62 pz -100
70 cz 120.00001
71 pz 101
72 pz -101
80 cz 120.5
81 pz 102
82 pz -102
90 py 11.0001
91 py 10.0001
92 px 30
93 px -30
94 pz 44
95 pz 0.05
100 py 11
101 py 10
102 px 31
103 px -31
104 pz -0.05
105 pz -44
200 rpp -70 70 100 101 -.5 .5
300 so 200
c *****data card*****
mode p
imp:p 1 7r 0
m1 1000 0.6666657
8000 0.333343
m2 6000 0.000150
7000 0.784431
8000 0.210748
18000 0.004671
m3 1000 0.386404
6000 0.335506
7000 0.031096
8000 0.031063
9000 0.143964
20000 0.071967
m4 1000 0.634643
6000 0.284063
7000 0.003047
8000 0.077748
11000 0.000116
12000 0.000004
15000 0.000028
16000 0.000122
17000 0.000180
19000 0.000044
20000 0.000003
26000 0.000002
30000 0.000002
m5 1000 0.633136
6000 0.053674
7000 0.012889
8000 0.298160
11000 0.000504
12000 0.000189
15000 0.000163
16000 0.000442
17000 0.000473
19000 0.000313
20000 0.000014
26000 0.000042
30000 0.000001
m6 48000 0.166664
74000 0.166674
8000 0.666662
m7 82000 1
*tr1 0 60 0 A B 90 C D 90 90 90 0
sdef par=2 erg=d1 pos=0 0 0 vec=0 1 0 dir=0.866
# si1 sp1
1.0084E-03 0.00000E+00
2.0168E-03 0.00000E+00
3.0252E-03 0.00000E+00
4.0336E-03 0.00000E+00
5.0420E-03 0.00000E+00
6.0504E-03 0.00000E+00
7.0588E-03 0.00000E+00
8.0672E-03 3.44796E-12
9.0756E-03 1.43263E-11
1.0084E-02 1.61336E-10
1.1092E-02 1.23323E-10
1.2101E-02 2.31276E-10
1.3109E-02 4.18050E-10
1.4118E-02 5.43331E-10
1.5126E-02 7.30746E-10
1.6134E-02 9.48155E-10
1.7143E-02 1.05167E-09
1.8151E-02 1.24385E-09
1.9160E-02 1.45253E-09
2.0168E-02 1.41372E-09
2.1176E-02 1.58008E-09
2.2185E-02 1.49539E-09
2.3193E-02 1.39546E-09
2.4202E-02 1.60091E-09
2.5210E-02 1.77629E-09
2.6218E-02 1.64438E-09
2.7227E-02 1.55865E-09
2.8235E-02 1.51317E-09
2.9244E-02 1.67447E-09
3.0252E-02 1.42790E-09
3.1261E-02 1.43981E-09
3.2269E-02 1.43346E-09
3.3277E-02 1.50246E-09
3.4286E-02 1.27028E-09
3.5294E-02 1.37696E-09
3.6303E-02 1.21324E-09
3.7311E-02 1.24022E-09
3.8319E-02 1.26444E-09
3.9328E-02 1.28441E-09
4.0336E-02 1.30803E-09
4.1345E-02 1.08305E-09
4.2353E-02 1.06476E-09
4.3361E-02 1.02964E-09
4.4370E-02 9.15837E-10
4.5378E-02 1.01810E-09
4.6387E-02 8.97635E-10
4.7395E-02 1.00772E-09
4.8403E-02 9.49140E-10
4.9412E-02 8.80890E-10
5.0420E-02 8.51653E-10
5.1429E-02 7.91649E-10
5.2437E-02 7.57863E-10
5.3445E-02 7.55360E-10
5.4454E-02 6.85205E-10
5.5462E-02 7.80252E-10
5.6471E-02 6.20147E-10
5.7479E-02 6.48637E-10
5.8487E-02 1.99221E-09
5.9496E-02 3.33256E-09
6.0504E-02 6.10739E-10
6.1513E-02 5.61391E-10
6.2521E-02 6.14844E-10
6.3529E-02 5.03824E-10
6.4538E-02 5.20531E-10
6.5546E-02 4.92479E-10
6.6555E-02 4.26789E-10
6.7563E-02 1.24613E-09
6.8571E-02 4.79952E-10
6.9580E-02 6.38214E-10
7.0588E-02 4.23298E-10
7.1597E-02 3.28817E-10
7.2605E-02 3.60778E-10
7.3613E-02 2.89660E-10
7.4622E-02 3.78023E-10
7.5630E-02 3.33947E-10
7.6639E-02 3.25685E-10
7.7647E-02 3.45221E-10
7.8655E-02 3.50549E-10
7.9664E-02 2.61037E-10
8.0672E-02 3.01928E-10
8.1681E-02 2.91274E-10
8.2689E-02 3.06540E-10
8.3697E-02 2.50665E-10
8.4706E-02 2.79256E-10
8.5714E-02 2.81088E-10
8.6723E-02 2.28601E-10
8.7731E-02 2.08389E-10
8.8739E-02 2.07522E-10
8.9748E-02 1.68544E-10
9.0756E-02 2.27768E-10
9.1765E-02 1.97554E-10
9.2773E-02 1.50893E-10
9.3782E-02 1.80534E-10
9.4790E-02 1.78895E-10
9.5798E-02 1.66618E-10
9.6807E-02 1.79927E-10
9.7815E-02 1.48160E-10
9.8824E-02 1.31455E-10
9.9832E-02 1.35565E-10
1.0084E-01 9.31133E-11
1.0185E-01 9.52008E-11
1.0286E-01 1.12294E-10
1.0387E-01 9.41310E-11
1.0487E-01 9.82343E-11
1.0588E-01 1.18358E-10
1.0689E-01 1.00083E-10
1.0790E-01 6.97141E-11
1.0891E-01 7.23152E-11
1.0992E-01 8.31221E-11
1.1092E-01 4.32715E-11
1.1193E-01 6.42345E-11
1.1294E-01 2.87949E-11
1.1395E-01 4.00324E-11
1.1496E-01 4.08056E-11
1.1597E-01 2.08089E-11
1.1697E-01 1.60474E-11
1.1798E-01 2.87058E-11
1.1899E-01 3.59496E-12
1.2000E-01 3.33491E-12
c si2 -20 20
c sp2 0 1
c si3 1 2
c sp3 0 1
c si4 -.5 .5
c sp4 0 1
c f2:p 70
c e2 0 98i 0.12
Tmesh
rmesh3 total
cora3 -70 799i 70
corb3 100 101
corc3 -.5 .5
endmd
print
nps 1e8
prdmp 1e8 1e8 -2 1 1e8
c mplot tally 2 free e noerr

Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!