importing data to form a matrix

I have data in 2500 files with filenames like 1.txt, 2.txt etc. and each file has one column of data. I want one matrix that has all these columns.
I used A1 = importdata('1.txt') to read in one file
but how can I put filenames in loop to read all of them and get a matrix out of it?

카테고리

도움말 센터File Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

질문:

2013년 4월 14일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by