Extract, save, plot three specific columns from huge txt file
8 views (last 30 days)
I meet a problem about extracting columns from a huge txt file, and what I want is using textscan to extract column 1, 3 and 8 as a new txt file. Then I try to plot them in subplot, the column 1 as x axis and column 3 and 8 become y1 and y2. However, I ended up with error:
Index in position 1 exceeds array bounds (must not exceed 1)
I understand that Matlab treat the whole file as one column, anyone could help me with some codes please? Thank you very much.