How to Import unformatted text data?
7 ビュー (過去 30 日間)
古いコメントを表示
Below I have attached a text file , how to read and separate the values
[
4 件のコメント
採用された回答
Matt Kindig
2012 年 10 月 4 日
Hi Maddila,
This looks like a rather non-uniform format, so your best bet might be to read in the full file, and then separate it out using regexp. It looks like splitting by square brackets might do the trick. Something like this:
str = fileread('your/file/name'); %read in file in full
parts = regexp(str, '\[|\]', 'split'); %split by brackets
%then you can extract information from the individual split out sections.
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Contour Plots についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!