0
votes

I have a text file a.text of the form

    2    3    4    
    1    5    6    

Now, I want to read this text file using Matlab and make a column vector b of the form :

b =

     2
     3
     4
     1
     5
     6

The original text file contains 100*100 numbers. Could anyone help?

1

1 Answers

2
votes

Use textread

b = textread('a.txt','%d');