Thanks for the answers. But it was may be some corrupted files problem. I have re-installed matlab and everything is working fine now.
Problem with imshow command
10 ビュー (過去 30 日間)
Muhammad Zaigham Zaheer 2015 年 5 月 14 日
I am trying to display multiple images in one figure using the following code:
[imgs labels] = readMNIST('t10k-images-idx3-ubyte', 't10k-labels-idx1-ubyte', 50, 10);
name = ['image',num2str(i),'.jpeg'];
But the code gives this error:
Error using fopen
First input must be a file name of type char, or a file identifier of type double.
Error in imshow (line 25)
fid = fopen(imgFile, 'r', 'b');
Error in test (line 24)
if I remove the imshow (im); command, the code works fine and save the image files without any problem. I am using Matlab 2014b. Thanks in advance.
その他の回答 (2 件)
Ashish Uthama 2015 年 5 月 14 日
Which imshow are you using? line 25 of the toolbox version does not appear to have an fopen.
Try which -all imshow. You might have a shadowed version.