2007年9月9日

三维地形显示

摘要: matlab Creating Surfaces and Meshes 很三维函数的,help里面提供如下。 hidden Mesh hidden line removal mode meshc Combination mesh/contourplot mesh 3-D mesh with reference plane peaks A sample function of two varia... 阅读全文

posted @ 2007-09-09 22:36 cutepig 阅读(356) 评论(0) 推荐(0) 编辑

dijsk最短路径算法(matlab)

摘要: 算法描述: 输入图G,源点v0,输出源点到各点的最短距离D 中间变量v0保存当前已经处理到的顶点集合,v1保存剩余的集合 1.初始化v1,D 2.计算v0到v1各点的最短距离,保存到D for each i in v0;D(j)=min[D(j),G(v0(1),i)+G(i,j)] ,where j in v1 3.将D中最小的那一项加入到v0,并且从v1删除这一项。 4.转到2,直到v0包含所... 阅读全文

posted @ 2007-09-09 16:06 cutepig 阅读(7616) 评论(1) 推荐(0) 编辑

导航