在matlab中可视化图形 [英] Visualize a graph in matlab

查看:335
本文介绍了在matlab中可视化图形的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个由一组边和相应的开始和结束节点组成的图。这些是针对城市的特定区域生成的。如何在matlab中直观显示此图

解决方案

查看此功能:













$ b pre> %绘制Bucky球碳分子的一半,在每个节点放置星号:
k = 1:30;
[B,XY] = bucky;
gplot(B(k,k),XY(k,:),' - *')
axis square


I have a graph consisting of a set of edges with their corresponding start and end nodes. These were generated for a specific region of a city. How can I visualize this graph in matlab

解决方案

Check out this function:

doc gplot

Example:

% Plot half of a "Bucky ball" carbon molecule, placing asterisks at each node:
k = 1:30;
[B,XY] = bucky;
gplot(B(k,k),XY(k,:),'-*')
axis square

这篇关于在matlab中可视化图形的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆