Warning in ReadUff() Function
古いコメントを表示
Dear Mr. Emmert,
I am using your ReadUff() Matlab function for testing the format for a uff58b type, which I programmed myself with vb.NET.
When reading the generated file with other software, it can be read without any warnings.
The ReadUff() function in matlab however throws the following warning for every set:
Warning: Badly formated binary uff file (TestData_58b.uff) at set #2: the size of the data is greater than the number of bytes specified; extra extra bytes at the end will
be skipped.
I tried several changes in my code, without any success.
I would be very happy about any hint.
Thank you very much !
5 件のコメント
Mathieu NOE
2020 年 10 月 6 日
Hello
can you send me your uff file so I can test it ?
cheers
Walter Roberson
2020 年 10 月 6 日
This seems to relate to https://www.mathworks.com/matlabcentral/fileexchange/70464-uff-file-reading-and-writing
Walter Roberson
2020 年 10 月 6 日
That section of code has the comment
% It was observed that some programs write some inconsistent values
% to the header concerning the number of data and/or bytes the data
% is to occupy. In case such incosistency is found, the max number
% will be used and a warning displayed.
so it sounds like a common problem that the header does not match the data. Other programs might choose not to complain about it, or might ignore the header when reading the file.
Shilei Zhang
2020 年 10 月 6 日
Shilei Zhang
2020 年 10 月 6 日
回答 (1 件)
Mathieu NOE
2020 年 10 月 6 日
hello again
I could open succesfully your file using the attached readuff file
all the best !
clc
clear all
[UffDataSets, Info, errmsg] = readuff('TestData_58b.uff')
UffDataSets{1}.measData
カテゴリ
ヘルプ センター および File Exchange で Logical についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!