From: Tyler on
Hey all,
I am a new matlab user and want to know how to read in a matrix from a text file.
Here is the file I want to read in called 'Sample.txt'

4
1 2 3 4
4 3 2 1
1 2 3 4
4 3 2 1

I need to be able to read the first character (size of matrix) and then input into matlab and call matrix A=[1 2 3 4;4 3 2 1;1 2 3 4;4 3 2 1];

Any help is appreciated,

Thanks
Tyler