How to show graph plot in app.UIAxes?
Show older comments
Hi, I'm using R2016a.
I have a code in m file like the following
a = [1 1 2 2 2 3 5];
b = [2 3 3 4 6 5 6];
bobot = [0.7 3.8 3.7 2.1 1.6 4 1.8];
C = graph(a,b,bobot);
p=plot(C,'EdgeLabel',C.Edges.Weight);
If I run this code in an m file, it will be very easy for me to get a graph plot like the following

then I want to display this in axes in the app designer as shown below

however, I get an error message like the following.

How can I display the graph plot in my app.UIAxes?
Accepted Answer
More Answers (0)
Categories
Find more on Startup and Shutdown 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!
