How to extract Numbers from a textfile

1 vue (au cours des 30 derniers jours)
bear007
bear007 le 26 Oct 2012
Hi there, currently I get from measurements textfiles with timing results. The content of each textfile looks like this:
# [0] Min, [1] Avg, [2] Max, [3] Std. Dev
Times 137.849us 148.408us 460.475us 23.0206us
I would like to read the values from this textfile into an array, such as:
times = [0.1378e-003 0.1484e-003 0.4605e-003 0.0230e-003];
I know that it works somehow with fscanf, but it won't work, when I try it. Does anyone have a idea to help me with this? Thanks a million in advance! Martin

Réponses (1)

Mech Princess
Mech Princess le 26 Oct 2012

Catégories

En savoir plus sur Data Import and Analysis dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by