UIAxes
in Matlab App designer does not support non-numeric data such as a graph
plot, is there any alternative to do it inside UI framework?
In GUIDE I do this:
% --- Executes on button press in Visualize.
function Visualize_Callback(hObject, eventdata, handles)
a = [1 2 3 4];
b = [2 3 4 1];
g = graph(a,b);
p = plot(g);
axis off
Clicking for example Visualize
button I'll have the graph appeared in the guide fig. framework.
I try to do that in App Designer and it's ok for plotting numeric values, but for a graph visualization I didn't find the right way to do so.
methods (Access = private)
% Button pushed function: VisualizeButton
function VisualizeButtonPushed(app, event)
a = [1 2 3 4];
b = [2 3 4 1];
g = graph(a,b);
ax = app.UIAxes;
plot(ax,g)
end
end