Not enough input arguments. What does that mean?

Source: Internet
Author: User
Tags fread integer

function [I,labels,i_test,labels_test] = readmnist (num)

Path = './testmnist/mnist/train-images.idx3-ubyte ';
if (~exist (path, ' file '))
Error (' Training set of MNIST not found. Download it from Http://yann.lecun.com/exdb/mnist/and put to./testmnist/mnist folder ');
End
FID = fopen (path, ' R ', ' B '); %r is a reading read-only Big-endian high byte order is the upper byte emitted at the low address end of the memory, the low byte is discharged at the high address end of the memory
Magicnum = fread (fid,1, ' Int32 '); %1 is read as a variable Magic number ' int32 ' Integer (integer), + bits.
if (magicnum~=2051)%~= is not equal to the meaning
Display (' Error:cant find magic number ');
Return
End
Imgnum = fread (fid,1, ' Int32 '); %number of images
Rowsz = fread (fid,1, ' Int32 '); %image height
COLSZ = fread (fid,1, ' Int32 '); %image width

if (numImgnum=num;
End

Error using Readmnist_image (line 19) has occurred
Not enough input arguments. What does that mean?

Help.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.