reading mdf file and plotting data fails
古いコメントを表示
Hi all
I have some mdf files, created by Vector Canoe, and want to read and plot them in Matlab2016b
First file T036 is a mdf3.0, second file T037 is a mdf4.1 (attached)
I try to read the first file like this
a = mdf('T036.mdf')
I get an error
Error in asam.MDF/delete
Error in asam.MDF
Error in mdf (line 25)
out = asam.MDF(file);
> In asam.MDF
In mdf (line 25)
MDF file invalid format.
Reading the second file like this
b = mdf('T037.mdf')
will return no error, the mdf file I just read has 855 channels.
So I want to read a certain channel like this
c = read(b,1,b.ChannelNames{1})
and then plot the channel by
plot (c.Time, c.posX)
This works fine, but only for ~500 of the channels.
c = read(b,507,b.ChannelNames{507})
will work fine, but
c = read(b,508,b.ChannelNames{508})
returns error code
Unable to read from MDF file.
Soooo....
is there something wrong I am doing this?
Or is there an error in the mdf file?
Also, why I can't read the 3.0 file?
Thanks in advance
回答 (1 件)
Bjoern Hackert
2019 年 2 月 11 日
編集済み: Bjoern Hackert
2019 年 2 月 12 日
0 投票
1 件のコメント
derecho
2020 年 9 月 9 日
hey did you solve the problem? i have the same problem here
カテゴリ
ヘルプ センター および File Exchange で MDF Files についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!