Hi Monks,
I really hope you can help me out - I'm a newbie here.
I have a dataset like this:
-2.65 -2.0865e-006 2.0831e-006
-2.6 -2.0532e-006 2.0569e-006
-2.55 -2.0215e-006 2.0262e-006
And I want to be able to access, and do calculations on, individual items within this dataset, using a 2(?) dimensional array.
I want to be able to pick out, say, -2.0215e-006, and then I can use the corresponding values in each of the two remaining columns to do the calculation. But I can't seem to find a way to get at these individual items.
Any help is very much appreciated. This is driving me crazy!
Thanks!
Tedffo
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.