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: Importing columns of different lengths using textscan
Replies: 6   Last Post: Sep 12, 2013 5:55 PM

Advanced Search

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

Posts: 61
Registered: 12/8/08
Importing columns of different lengths using textscan
Posted: Sep 12, 2013 6:26 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply


I have a file that I am reading in using textscan but the column lengths are different due to blanks (see example). I think my problem is specifying the integer type as some data from a certain column end up overlapping with another. I am currently using %f%f%f

Help is appreciated.



4 3
5 3 45
6 4 56
3 87 34
32 3 4
6 23 3
6 6 23
9 6 2
89 4
78 2

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.