Matlab, lecture d'un fichier de données

Fermé
cosmios Messages postés 23 Date d'inscription mercredi 29 avril 2009 Statut Membre Dernière intervention 18 avril 2011 - 18 avril 2011 à 11:25
Char Snipeur Messages postés 9813 Date d'inscription vendredi 23 avril 2004 Statut Contributeur Dernière intervention 3 octobre 2023 - 18 avril 2011 à 13:00
Bonjour,

J'ai un fichier .txt de données classées dans un tableau de la facon suivante:

******data.statistics******

Material | Triangles | Area | Volume |
-------------|-----------|---------|----------|
Exterior | 199980 | 792.20 | -164.925 |
Material004 | 818 | 3.11 | 0.450 |
Material006 | 906 | 3.45 | 0.531 |
Material007 | 64 | 0.20 | 0.007 |
Material012 | 516 | 2.18 | 0.263 |
Material013 | 628 | 2.49 | 0.320 |
Material030 | 1996 | 7.73 | 1.722 |



Pouvez vous m'aider pour le lire sur Matlab?
Merci et bonne soirée


A voir également:

1 réponse

Char Snipeur Messages postés 9813 Date d'inscription vendredi 23 avril 2004 Statut Contributeur Dernière intervention 3 octobre 2023 1 298
18 avril 2011 à 13:00
bonjour, la fonction fscanf() devrait faire l'affaire non ?
https://www.mathworks.com/help/matlab/ref/fscanf.html;jsessionid=dc91fc6def905e2a008ebbd6e792
0