Subscript indices must either be real positive integers or logicals
Show older comments
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?
4 Comments
Guillaume
on 26 Jan 2016
What is read? A function that you've written?
elena rondina
on 26 Jan 2016
Edited: elena rondina
on 26 Jan 2016
Star Strider
on 26 Jan 2016
What is ‘main’?
What is the value of ‘k’?
Accepted Answer
More Answers (0)
Categories
Find more on Device Connection in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!