I have a function implemented as follows:
function out = testplot(1:10);
When I call this function from MATLAB, the plot displays and the figure remains open as expected.
I then compile my function as follows:
mcc -m test
When I execute the resulting executable test.exe, I receive the following output:
One or more output arguments not assigned during call to '$dir\test_mcr\test\test.m (test)'. MATLAB:unassignedOutputs
The plot opens but then immediately closes.
Best Answer