Fread a ubyte file

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 Comment

What does
dir('t10k-images-idx3-ubyte*')
show?
Have you checked to be sure you are in the correct directory?

Sign in to comment.

Answers (0)

Categories

Find more on Get Started with MATLAB in Help Center and File Exchange

Tags

Asked:

on 21 Feb 2014

Commented:

on 21 Feb 2014

Community Treasure Hunt

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

Start Hunting!