How can I load coded ascii files?
古いコメントを表示
My files are '-P01' and seem to have non-rectangular matrix formats. They contain text and number data points. Here is the list of a few commands I've used without success, as well as the error descriptions.
>> load('CA10.Cyl1.P01')
Error using load
Unknown text on line number 2 of ASCII file CA10.Cyl1.P01
"".
>> load('CA10.Cyl1.P01','-mat')
Error using load
Unable to read MAT-file D:\Backup\LD Consortium\VVA on CLO\ESN01\20180605_Lamb\CAS\3\CA10.Cyl1.P01. File might be
corrupt.
>> importdata('CA10.Cyl1.P01')
ans =
''
' 2 '
' CA10.Cyl1001 +‡v?P½P½+‡v?j¼„¿/¡À/À/À/ÀP½5^BÀåО@j¼„¿/À5^À5^Àj¼„¿5^ÀP½Ë¡=@5^BÀ5^À+‡v...'
I've tried multiple other commands with no luck. Any information would be much appreciated. I cannot include the file because the extension isn't in a valid attachment format.
2 件のコメント
Rik
2018 年 6 月 7 日
You can include it inside a zip. But the more important question is: what is the file definition? Why do you expect Matlab to know this file type?
You can read it with fread and process it yourself if you know what the file format is.
Walter Roberson
2018 年 6 月 7 日
Are those archives created with QuickPar ?
回答 (1 件)
Joel Duncan
2018 年 6 月 8 日
0 投票
2 件のコメント
Walter Roberson
2018 年 6 月 8 日
See https://www.mathworks.com/matlabcentral/fileexchange/42274-loadfixnames-loads-a-mat-file--fixing-invalid-names for software that can read the .mat files.
Walter Roberson
2018 年 6 月 8 日
I notice that https://sites.ualberta.ca/~ckoch/Thesis/MMthesis_20120608.pdf mentions having software to convert P01 files to .mat
カテゴリ
ヘルプ センター および File Exchange で Large Files and Big Data についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!