Here is how I plot my map in app-designer:
[m n] = size(M);
M2 = ;
patch(app.mapPlot, M2(:,1), M2(:,2), [0.62,0.83,0.50]);
but get this error:
Error using savefig (line 43)
H must be an array of handles to valid figures
So how do I properly use savefig and openfig within app-designer?