The Math Forum

Search All of the Math Forum:

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

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

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: The function textscan
Replies: 9   Last Post: Mar 28, 2013 5:53 PM

Advanced Search

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

Posts: 25
Registered: 10/3/11
Re: The function textscan
Posted: Mar 26, 2013 3:38 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Sorry, I already figure out how to solve my problem.
I don't know how to remove the topic, but if someone else need this information, I'm using the textread function. Also a good choice.


"Wanderson " <> wrote in message <kist3q$n31$>...
> Hi, I'm having a trouble dealing with the function textscan.
> In fact, I want to use that function twice inside the same script. For example, I need to read one entire file called 'test.txt' and later in my code I want to read just the end of the file and I thought to use the textscan again with the HeaderLines parameter.
> If my test.txt file were formatted it will be easier, but I have something like that:
> #Text
> 1
> #NUM
> 3
> 1 1 0
> 1 1 3 4 5 6 7
> 3 4 3 5 6 6 7
> 3 4 5 6 7 8 9
> In the second call of the textscan function I wanted to read just the #GRID part. I want to know if we have another option to do that. Because I guess I can't use the same 'FID' from the same filename twice.
> Thanks for all!!

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

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.