フィルターのクリア

I want to read data and variable name from txt file

4 ビュー (過去 30 日間)
Aakriti Srivastava
Aakriti Srivastava 2022 年 6 月 15 日
コメント済み: Aakriti Srivastava 2022 年 6 月 16 日
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

採用された回答

Voss
Voss 2022 年 6 月 16 日
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'}
T = 5×2 table
Variable Value ___________ _____ {'Lser' } 0.4 {'Lser_Tx'} 0.5 {'Qc' } 50 {'Ql' } 50 {'Cshu' } 1
  9 件のコメント
Voss
Voss 2022 年 6 月 16 日
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:
Aakriti Srivastava
Aakriti Srivastava 2022 年 6 月 16 日
Thank you :)

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeText Files についてさらに検索

タグ

製品


リリース

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by