How to get numerical values of a text type cell ?
    3 次查看(过去 30 天)
  
       显示 更早的评论
    
Hi,
   I am trying to read the contents of a .txt file, which is the frequency response data I got from other simulation software. The following shows the format of the data, which has 'Frequency' and 'Real/Imaginary' part of the frequency response.

        I tried using 'readtable()' to load the data into MATLAB, which works. However, the loaded data is in 'Cell' format, and I am not able to get the actual value of the data, please see following.

        My question is (1) how can I get the actual values ? (2) Is there any better way to do the job than 'readtable()' ? Thanks for help!
0 个评论
采纳的回答
  Walter Roberson
      
      
 2019-2-27
        T = readtable(FileName, 'Delimiter', ' ,');
6 个评论
  Walter Roberson
      
      
 2019-2-28
				T = readtable(filename, 'Delimiter', '\t,');
You did indeed have a tab.
更多回答(1 个)
另请参阅
类别
				在 Help Center 和 File Exchange 中查找有关 Data Type Identification 的更多信息
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


