Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想知道人们如何绘制如下图。我有多个定位点。我需要通过曲线连接两个位置。(不是按行)知道如何实现这一目标吗?在 MATLAB 中我没有找到任何内置函数。
使用最新版本的 MATLAB (R2015b),您可以使用新的“图形和网络”工具。它提供了不同类型的布局,也许您会发现其中一些适合您的问题。
s = [1 1 1 2 2 3 3 4 5 5 6 7]; t = [2 4 5 3 6 4 7 8 6 8 7 8]; G = graph(s,t); h = plot(G,'Layout','layered');