Import data from .csv files and use them as the input matrixes
Show older comments
Hello everybody,
I have several .csv files(always a file with just one worksheet) containing the input data. What I'd like to do is to take such a file and import certain number of rows (over the all columns, however the number of columns is fixed).
Let say I'd like to receive Matrix1 from "file.csv" with dimension (220 000:265 000, 2:400). Anybody experienced with that? Thank you. Best regards, Vasek
Answers (1)
William
on 23 Mar 2012
use the csvread() command
type
help csvread
Categories
Find more on Spreadsheets in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!