Subscript indices must either be real positive integers or logicals
Ältere Kommentare anzeigen
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 Kommentare
Guillaume
am 26 Jan. 2016
What is read? A function that you've written?
elena rondina
am 26 Jan. 2016
Bearbeitet: elena rondina
am 26 Jan. 2016
Star Strider
am 26 Jan. 2016
What is ‘main’?
What is the value of ‘k’?
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Programming finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!