hello recently I'm learning matlab. i have this problem:
j = read(img);u=im2bw(img);imshow(u);
and main:
if[imgName,path] = uigetfile('*.jpg','Select the MATLAB code file');img=imread([path imgName]);j =read(img );
matlab error:Subscript indices must either be real positive integers or logicals. how can I read an image by main function that using other read function?
Best Answer