How to show graph plot in app.UIAxes?
이전 댓글 표시
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?
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Startup and Shutdown에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

