Can I import Standard Data Format (SDF) files into MATLAB?

17 ビュー (過去 30 日間)
MathWorks Support Team
MathWorks Support Team 2009 年 6 月 27 日
編集済み: MathWorks Support Team 2021 年 10 月 21 日
Standard Data Format (SDF) files are formatted ASCII text files in which fields are delimited with a particular character (e.g., a space) and each record ends with a carriage return and/or line feed. I would like a built-in function that will easily import an SDF file into MATLAB just as CSVREAD reads a Comma-Separated Value (CSV) file into MATLAB.

採用された回答

MathWorks Support Team
MathWorks Support Team 2021 年 10 月 21 日
編集済み: MathWorks Support Team 2021 年 10 月 21 日
A single built-in function that is dedicated to the import of Standard Data Format (SDF) files is not available in core MATLAB.
To work around this issue, you can develop a function in MATLAB that will appropriately parse an SDF file. In particular, you can utilize the TEXTREAD or TEXTSCAN functions to read the formatted ASCII text file. For more information, please refer to the section of the MATLAB documentation entitled "Importing Text Data", in addition to the File I/O Guide:
MATLAB Central also has the ' 
 ' to enable reading of HP/Agilent/Keysight Standard Data Format (SDF) files within MATLAB.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeWorkspace Variables and MAT Files についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by