I want to read data and variable name from txt file
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Aakriti Srivastava
le 15 Juin 2022
Commenté : Aakriti Srivastava
le 16 Juin 2022
The text file looks something like this and I want to create two coloumn one for value other for variable
DIM
CAP PF
FREQ MHz
IND NH
RES OHM
VAR
Lser = 0.4
Lser_Tx = 0.5
Qc =50
Ql = 50
Cshu= 1
0 commentaires
Réponse acceptée
Voss
le 16 Juin 2022
For a text file that looks like that, readtable does essentially the right thing:
T = readtable('input_file_test.txt');
T.Properties.VariableNames = {'Variable','Value'}
9 commentaires
Voss
le 16 Juin 2022
Most functions have a "See Also" section at the end of their documentation page, which contains links to other related functions that may be useful:
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Data Import and Export 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!