What can ı do for 'Undefined function 'togglebutton1_Callback' for input arguments of type 'struct''
3 次查看(过去 30 天)
显示 更早的评论
What can ı do for 'Undefined function 'togglebutton1_Callback' for input arguments of type 'struct'' and other problem is give in the 'gui_mainfcn (line 96) feval(varargin{:});'. both problem depend each other
0 个评论
采纳的回答
Walter Roberson
2016-10-24
Create a new file named toggle1_Callback.m with the following content
function toggle1_Callback(varargin)
fprintf(2, 'toggle1_Callback reached\n');
fprintf(2, 'Number of arguments: %d\n', nargin)
for K = 1 : nargin
thisarg = varargin{K};
fprintf(2, 'Argument #1 is class "%s"\n', class(thisarg) );
argsize = size(thisarg);
fprintf( 2, ['and size [', repmat('%d, ', 1, length(argsize)-1), '%d]\n'], argsize );
end
fprintf('Now we are going to deliberately error in order to find out who called us\n');
error('Report the above and the trace to MATLAB Answers');
Then execute and report to us everything that showed up in red.
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Function Creation 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!