About fixing a script
9 ビュー (過去 30 日間)
古いコメントを表示
Hello,
I have been using one of the software which works in Matlab environment.
Software is working, except one function. Whenever I try to use that function, in the command window there is some errors. So I cannot create appropriate model. This model is very important for my research
Please see below.
coulomb
====================================================
Welcome to Coulomb 3.3.01
====================================================
Start from Input menu to read or build an input file.
Error using mat2cell (line 45)
Not enough input arguments.
Error in utm_window>pushbutton_f_add_Callback (line 1009)
HEAD(1,1) = mat2cell(x1);
Error in gui_mainfcn (line 95)
feval(varargin{:});
Error in utm_window (line 20)
gui_mainfcn(gui_State, varargin{:});
Error using waitfor
Error while evaluating UIControl Callback
The thing is I am not sure how to correct it. Should I fix the error lines with fix option in .m file? or is there another way to correct it.
Would be happy if you could help.
Regards, Ruken
0 件のコメント
採用された回答
Nobel Mondal
2015 年 5 月 12 日
編集済み: Nobel Mondal
2015 年 5 月 12 日
You have an error in 'mat2cell' function call in line 45 of your script. Please see the documentation to get more information on how to properly use the function.
>> help mat2cell
Could you show us the code snippet so that we may help you more?
0 件のコメント
その他の回答 (4 件)
Ruken
2015 年 5 月 12 日
2 件のコメント
Nobel Mondal
2015 年 5 月 12 日
HEAD(1,1) = mat2cell(x1);
mat2cell needs at least two input arguments to work with (along with additional conditions). The above line from your code is in conflict to that.
Walter Roberson
2015 年 5 月 12 日
I cannot seem to find that software package. Where did you obtain it from?
Ruken
2015 年 5 月 12 日
1 件のコメント
Stephen23
2015 年 5 月 12 日
編集済み: Stephen23
2015 年 5 月 12 日
mat2cell is part of MATLAB already, so you do not need to "add" that file to anything. The best solution would be to contact the author of that package and ask them to fix the bug, or to try altering the package code using Walter Roberson's suggestion.
Nicolas Castro
2016 年 3 月 7 日
I'm receiving the same error. I have tried many options, changing the original-problematic lines and couldn't solve it.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/173332/image.png)
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Migrate GUIDE Apps についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!