| MATLAB Central > MATLAB Newsreader > Reading file: 1 column of text in middle of 35 col... |
|
|
|
Subject: Reading file: 1 column of text in middle of 35 colums of numbers From: Eli Date: 28 Jun, 2012 16:19:07 Message: 1 of 11 |
|
I am trying to load a file with a mixture of text and data. There are 88 header lines (all need to be skipped) and then on line 89, the data begins separated by commas. The data consists of 35 columns and 976 rows. However, column 34 is text and contains the word "dtest_122.spe". |
|
Subject: Reading file: 1 column of text in middle of 35 colums of numbers From: dpb Date: 28 Jun, 2012 17:32:56 Message: 2 of 11 |
|
On 6/28/2012 11:19 AM, Eli wrote: |
|
Subject: Reading file: 1 column of text in middle of 35 colums of numbers From: Eli Date: 28 Jun, 2012 18:39:07 Message: 3 of 11 |
|
Here is what I am getting: |
|
Subject: Reading file: 1 column of text in middle of 35 colums of numbers From: dpb Date: 28 Jun, 2012 19:22:06 Message: 4 of 11 |
|
On 6/28/2012 1:39 PM, Eli wrote: |
|
Subject: Reading file: 1 column of text in middle of 35 colums of numbers From: Eli Date: 2 Jul, 2012 18:47:08 Message: 5 of 11 |
|
^^^^^Just wanted to update this, and post a related question after that: |
|
Subject: Reading file: 1 column of text in middle of 35 colums of numbers From: dpb Date: 2 Jul, 2012 19:34:41 Message: 6 of 11 |
|
On 7/2/2012 1:47 PM, Eli wrote: |
|
Subject: Reading file: 1 column of text in middle of 35 colums of numbers From: Eli Date: 2 Jul, 2012 22:47:07 Message: 7 of 11 |
|
> If this is a fixed-length name it's pretty simple... |
|
Subject: Reading file: 1 column of text in middle of 35 colums of numbers From: dpb Date: 3 Jul, 2012 00:31:02 Message: 8 of 11 |
|
On 7/2/2012 5:47 PM, Eli wrote: |
|
Subject: Reading file: 1 column of text in middle of 35 colums of numbers From: Eli Date: 3 Jul, 2012 19:36:07 Message: 9 of 11 |
|
> Oh, I cut 'n pasted some sample code from my command window--there I was |
|
Subject: Reading file: 1 column of text in middle of 35 colums of numbers From: dpb Date: 3 Jul, 2012 19:49:12 Message: 10 of 11 |
|
On 7/3/2012 2:36 PM, Eli wrote: |
|
Subject: Reading file: 1 column of text in middle of 35 colums of numbers From: Eli Date: 5 Jul, 2012 17:15:12 Message: 11 of 11 |
|
Thanks. I practiced with a few strings and I think I get the basic idea. |
A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.
Anyone can tag a thread. Tags are public and visible to everyone.
| Tag Activity for This Thread | ||
|---|---|---|
| Tag | Applied By | Date/Time |
| strrep | Eli | 2 Jul, 2012 18:49:14 |
| length | Eli | 2 Jul, 2012 18:49:14 |
| strfind | Eli | 2 Jul, 2012 18:49:14 |
| regxp | Eli | 2 Jul, 2012 14:49:10 |
| filenames | Eli | 2 Jul, 2012 14:49:10 |
| number | Eli | 28 Jun, 2012 12:19:12 |
| string | Eli | 28 Jun, 2012 12:19:12 |
| textread | Eli | 28 Jun, 2012 12:19:12 |
| textscan | Eli | 28 Jun, 2012 12:19:12 |
