How to automatically import data out of blocks in ascii files?
Afficher commentaires plus anciens
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...
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Workspace Variables and MAT Files dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!