Subscript indices must either be real positive integers or logicals
이전 댓글 표시
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
Guillaume
2016년 1월 26일
What is read? A function that you've written?
elena rondina
2016년 1월 26일
편집: elena rondina
2016년 1월 26일
Star Strider
2016년 1월 26일
What is ‘main’?
What is the value of ‘k’?
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Programming에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!