I want to read data and variable name from txt file
    조회 수: 3 (최근 30일)
  
       이전 댓글 표시
    
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
채택된 답변
  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'}
댓글 수: 9
  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:
추가 답변 (0개)
참고 항목
카테고리
				Help Center 및 File Exchange에서 Text Files에 대해 자세히 알아보기
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

