Filter löschen
Filter löschen

problem when input a value in function which called from gui

1 Ansicht (letzte 30 Tage)
nada ali
nada ali am 25 Feb. 2014
Kommentiert: nada ali am 27 Feb. 2014
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 Kommentare
Walter Roberson
Walter Roberson am 25 Feb. 2014
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 am 27 Feb. 2014
thanks,
I changed the name but the problem still there.

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Migrate GUIDE Apps finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by