Clear Filters
Clear Filters

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

2 views (last 30 days)
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

Accepted Answer

Walter Roberson
Walter Roberson on 24 Oct 2016
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.

More Answers (0)

Categories

Find more on Discrete Math in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!