Warning in ReadUff() Function

조회 수: 21 (최근 30일)
Shilei Zhang
Shilei Zhang 2020년 10월 6일
답변: Mathieu NOE 2020년 10월 6일
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
Shilei Zhang
Shilei Zhang 2020년 10월 6일
Thank you very much for your reply.
Attached you can find an example of my uff58b file in .txt format.
Best regards
Shilei Zhang
Shilei Zhang 2020년 10월 6일
@Walter Roberson,
thank you very much for your hint.
Lets say I have a set of 200 data (single precision) which means that the number of following bytes should be 200 * 4 bytes = 800 bytes right ?
I do not understand where the inconsistancy comes from.
Best regards

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

답변 (1개)

Mathieu NOE
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

카테고리

Help CenterFile Exchange에서 Logical에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by