How to automatically import data out of blocks in ascii files?
Show older comments
I have some data from measurements and the data files are like:
WL 1200.00
x1 tab y1
x2 tab y2
.
.
.
WL 1201.00
x1 tab y1
.
.
.
Wl 1202.00
.
.
Every block starts with 'WL' and then a wavelength. Then beneath the x-y data devided by tabs.
The problem is that the data arrays do not always have the same length. How can I tell Matlab that a new block starts with 'WL'. My goal is to get a 3D diagram with all the curves for all the different wavelengths...
Accepted Answer
More Answers (0)
Categories
Find more on Workspace Variables and MAT Files 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!