What can ı do for 'Undefined function 'togglebutton1_Callback' for input arguments of type 'struct''

2 次查看(过去 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

采纳的回答

Walter Roberson
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 个)

类别

Help CenterFile Exchange 中查找有关 Discrete Math 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by