why i am getting error while using editable text in guide?
古いコメントを表示
Error using uicontrol
Too many input arguments.
Error in msgbox (line 253)
OKHandle=uicontrol(figureHandle , ...
Error in errordlg (line 59)
handle = msgbox(ErrorStringCell,dlgName,'error',replace);
Error in guidefunc>showErrorDialog (line 3955)
h = errordlg(e.getReport(), getDialogTitle());
Error in guidefunc (line 165)
showErrorDialog(me ,'Unhandled internal error in guidefunc');
com.mathworks.jmi.MatlabException: Too many input arguments.
at com.mathworks.jmi.NativeMatlab.SendMatlabMessage(Native Method)
at com.mathworks.jmi.NativeMatlab.sendMatlabMessage(NativeMatlab.java:273)
at com.mathworks.jmi.MatlabLooper.sendMatlabMessage(MatlabLooper.java:120)
at com.mathworks.jmi.Matlab.mtFevalConsoleOutput(Matlab.java:1843)
at com.mathworks.jmi.MatlabWorker.feval(MatlabWorker.java:195)
at com.mathworks.jmi.MatlabWorker.feval(MatlabWorker.java:172)
at com.mathworks.toolbox.matlab.guide.utils.LayoutWorker.runOnMatlabThread(LayoutWorker.java:51)
at com.mathworks.jmi.MatlabWorker$2.run(MatlabWorker.java:79)
3 件のコメント
Geoff Hayes
2020 年 6 月 12 日
Ajay - without seeing all of your code it will be challenging to understand what is going wrong. Have you perhaps, in your GUI, created a variable named ucontrol or perhaps you've created your own function named uocontrol? The error message is telling you that too many input parameters are being passed into uicontrol (at the line where it is trying to create the OK button).
At the command line, try typing
which uicontrol -all
What is returned from this command? Also, again at the command line, try to create a simple message box as
msgbox('error message', 'Hello', 'error')
Does this work? If not, what is the full error message.
Also, what is the report in the following line of code? A string or a cell array of strings?
h = errordlg(e.getReport(), getDialogTitle());
Adam Danz
2020 年 6 月 15 日
"Error using uicontrol"
I don't a reference to uicontrol anywhere in the code you shared.
Is msgbox() the name of a file or are you using Matlab's builtin function msgbox()?
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Scope Variables and Generate Names についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
