Fread a ubyte file

2 次查看(过去 30 天)
Kris zenitis
Kris zenitis 2014-2-21
I am trying to fread a file with the following command:
f = fopen('t10k-images-idx3-ubyte','r');
[a,count] = fread(f,4,'int32');
However, I am receiving Invalid file identifier. Use fopen to generate a valid file identifier. What exactly this mean?
  1 个评论
Walter Roberson
Walter Roberson 2014-2-21
What does
dir('t10k-images-idx3-ubyte*')
show?
Have you checked to be sure you are in the correct directory?

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Low-Level File I/O 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by