필터 지우기
필터 지우기

getting an error that attempt to run script as a function? what should be done to rectify?

조회 수: 1 (최근 30일)
Attempt to execute SCRIPT get_im_label as a function: G:\pro\letrist-master\helpfun\get_im_label.m
Error in demo_CURET (line 25) imageDatasetLabel = get_im_label(imdir); This is the error i am getting. how to modify? my code is attached here.

채택된 답변

madhan ravi
madhan ravi 2018년 10월 12일
편집: madhan ravi 2018년 10월 12일
You have saved get_im_label as a script instead of a function look into the error message as it clearly states the error.
Usage:
get_im_label(imdir)
  댓글 수: 2
Shan Sha
Shan Sha 2018년 10월 12일
Array indices must be positive integers or logical values.
Error in get_im_label (line 14) if ~strcmp(dataname(j).name(end-1:end),'db') % ËÎ
Error in demo_CURET (line 25) imageDatasetLabel = get_im_label(imdir);
what is this error? howv to modify
madhan ravi
madhan ravi 2018년 10월 12일
Read the link I posted in answer , take your time to understand.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 MATLAB에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by