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
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
Walter Roberson 2018년 6월 7일
Are those archives created with QuickPar ?

댓글을 달려면 로그인하십시오.

답변 (1개)

Joel Duncan
Joel Duncan 2018년 6월 8일

0 개 추천

@Rik,
The problem is I do not know the file definition. The recording software manual is very vague. These files were produced with A&D Technology software.
With certain file names (I assume the ones without comments in the first few lines of the file,) I can specify a '-mat' extension and they load correctly. I've attached a zip folder with the file that will not load as well as 'tqca0.P01' which does load correctly with the '-mat' extension specification.
The software does allow for a -mat conversion after logging, except it saves the file names with invalid characters which do not load correctly. I've also included 'Knock Pk-Pk.AVL.mat' which is a sample of the files with incorrect naming. If there is a way to get this file to load I would not necessarily need the '-P01' files, but ideally the '-P01' file would be best because I've had issues with the software freezing in the past during the '-mat' conversion process.
Thank you for your time, Joel
@Walter,
These were created with A&D Tech's CAS system.
Thank you for your time, Joel

카테고리

도움말 센터File Exchange에서 Large Files and Big Data에 대해 자세히 알아보기

태그

질문:

2018년 6월 7일

댓글:

2018년 6월 8일

Community Treasure Hunt

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

Start Hunting!

Translated by