| MATLAB Central > MATLAB Newsreader > problems using textread |
|
|
|
i am trying to read in the 3rd value of the 1st numerical line 0.000 0.6149 0.00834 ........ of the file below using textread. however i am having a lot of problems and it just will not read the line i want. it is the first time i have used this type of text scanning read in method and it is starting to annoy me. i want to read the value in exactly as is shown in the file below then assign it to the variable Cd. |
|
Two suggestions: |
|
Subject: problems using textread From: Luca Zanotti Fragonara Date: 18 Nov, 2008 20:57:02 Message: 3 of 5 |
|
fin=fopen('filename','rt') |
|
Subject: problems using textread From: Luca Zanotti Fragonara Date: 18 Nov, 2008 21:40:20 Message: 4 of 5 |
|
Sorry, I've posted 2 times, and this is the third. But I've posted a wrong code. I've written textread, while I was thinking at textscan. So the correct code is: |
|
Luca, |
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 |
| textread | Sprinceana | 10 Sep, 2009 10:31:56 |
Contact us at files@mathworks.com
