필터 지우기
필터 지우기

problem when input a value in function which called from gui

조회 수: 1 (최근 30일)
nada ali
nada ali 2014년 2월 25일
댓글: nada ali 2014년 2월 27일
hi,
I created gui for my work, I have a function when I called within GUI I HAVE TO INPUT A VALUE USING
prompt={'Enter the lenfgth of recommended list:'};
title='length of recommendation list';
answer=inputdlg(prompt,title);
m = str2num(answer{1});
when input a value, the code is not running.
I tried to run the code without call it from gui, I did not find any problem.
I hope to know the reason. I would like to say when running the function the command window return message tell me that function is case sensitive
  댓글 수: 2
Walter Roberson
Walter Roberson 2014년 2월 25일
title() is the name of one of MATLAB's graphics routines; it is not advised that you use it a variable name.
Which function does it complain about the case sensitivity? Which file name (exactly) do you save it in, and what exactly is the "function" line for it ?
nada ali
nada ali 2014년 2월 27일
thanks,
I changed the name but the problem still there.

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Migrate GUIDE Apps에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by