⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 inertpart.m

📁 This toolbox contains Matlab code for several graph and mesh partitioning methods, including geometr
💻 M
字号:
function p = inertpart(A,xy,picture);% INERTPART : Inertial partition of a graph.%% p = inertpart(A,xy) returns a list of the vertices on one side of a partition%     obtained by bisection with a line or plane normal to a moment of inertia%     of the vertices, considered as points in Euclidean space.%     Input A is the adjacency matrix of the mesh (used only for the picture!);%     each row of xy is the coordinates of a point in d-space.%% inertpart(A,xy,1) also draws a picture.%% See also GEOPART, SPECPART, ISPART%% John Gilbert  11 Nov 1994% Copyright (c) 1990-1996 by Xerox Corporation.  All rights reserved.% HELP COPYRIGHT for complete copyright and licensing notice.if nargin < 3    picture = (nargout == 0);end;[n,d] = size(xy);% We shift the points to have mean zero,% and then cut normal to the singular vector.xymean = mean(xy);[U,S,V] = svd(xy - ones(n,1)*xymean,0);v = V(:,1)';p = partition(xy,v);if picture    clf reset    gplotpart(A,xy,p);    title('Inertial Partition')end;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -