Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: Remove text from file of numerics
Replies: 4   Last Post: Aug 1, 2013 2:30 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Phil

Posts: 61
Registered: 12/8/08
Remove text from file of numerics
Posted: Jul 31, 2013 5:37 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Hello,

I have the following data within a text file:

Cycle 1
x y z
1 10 100
2 20 200
3 30 300
4 40 400
5 50 500
6 60 600
7 70 700
8 80 800
9 90 900
10 100 1000

Cycle 2
x y z
11 110 1100
12 120 1200
13 130 1300
14 140 1400
15 150 1500
16 160 1600
17 170 1700
18 180 1800
19 190 1900
20 200 2000

Cycle 3
x y z
21 210 2100
22 220 2200
23 230 2300
24 240 2400
25 250 2500
26 260 2600
27 270 2700
28 280 2800
29 290 2900
30 300 3000

How do I read in this data so I just have a matrix of 30 x 3 without the strings?

Many thanks,

Phil



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.