About fixing a script
显示 更早的评论
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
采纳的回答
更多回答(4 个)
Walter Roberson
2015-5-12
Try editing the code to be
HEAD(1,1) = {x1};
4 个评论
Walter Roberson
2015-5-12
In file utm_window.m in the utm directory, change the two lines
HEAD(1,1) = mat2cell(x1);
HEAD(2,1) = mat2cell(x2);
to be
HEAD(1,1) = {x1};
HEAD(2,1) = {x2};
Walter Roberson
2015-5-12
The same change needs to be made to
sources/grid_input_window.m
and to
sources/new_fault_mouse_clicks.m
Yueyang Xia
2020-4-11
You are great, man! Thanks!
semih eski
2020-6-17
Thanks man.
Ruken
2015-5-12
0 个投票
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?
Nicolas Castro
2016-3-7
0 个投票
I'm receiving the same error. I have tried many options, changing the original-problematic lines and couldn't solve it.

类别
在 帮助中心 和 File Exchange 中查找有关 Downloads 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!