How to pass an object of handle class to the function constructing the app in App Designer?
In my App Designer, the default function that constructs the app takes varargin as input. The function creates UIFigure and Components, registers the app with AppDesigner, and executes the startup function. Say this is represented by "B" (a matlab function with same name as mlapp file created by AppDesigner automatically and cannot be edited because greyed out).
The object of handle class essentially creates the object, creates the structs to store data, and initializes the structs with default/initial data. Say this is represented by "A" (an object of handle class).
I am getting an error when doing:
var_name = B(A);
Error Code:
"Cannot pass an object of handle class ‘A’ to MATLAB function ‘B’"In my App Designer, the default function that constructs the app takes varargin as input. The function creates UIFigure and Components, registers the app with AppDesigner, and executes the startup function. Say this is represented by "B" (a matlab function with same name as mlapp file created by AppDesigner automatically and cannot be edited because greyed out).
The object of handle class essentially creates the object, creates the structs to store data, and initializes the structs with default/initial data. Say this is represented by "A" (an object of handle class).
I am getting an error when doing:
var_name = B(A);
Error Code:
"Cannot pass an object of handle class ‘A’ to MATLAB function ‘B’" In my App Designer, the default function that constructs the app takes varargin as input. The function creates UIFigure and Components, registers the app with AppDesigner, and executes the startup function. Say this is represented by "B" (a matlab function with same name as mlapp file created by AppDesigner automatically and cannot be edited because greyed out).
The object of handle class essentially creates the object, creates the structs to store data, and initializes the structs with default/initial data. Say this is represented by "A" (an object of handle class).
I am getting an error when doing:
var_name = B(A);
Error Code:
"Cannot pass an object of handle class ‘A’ to MATLAB function ‘B’" appdesigner, matlab, matlab gui, simulink, matlab compiler, simulation MATLAB Answers — New Questions