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

📄 spypart.m

📁 SuperLU is a general purpose library for the direct solution of large, sparse, nonsymmetric systems
💻 M
字号:
function spypart(S, rp, cp);%SPYPART Spy plot with partitioning.%   SPYPART(S,rp,cp) plots the sparsity pattern of a matrix S,%   with lines marking a block partition described by %   rp (rows) and cp (columns).%   If S is square, cp may be omitted and defaults to rp.%%   Partitions are specified as in the output of DMPERM:%   There are length(rp)-1 row blocks, of sizes diff(rp), with rp(1)=1.%   Copyright (c) 1984-98 by The MathWorks, Inc.%   $Revision: 5.3 $  $Date: 1997/11/21 23:27:12 $if (nargin < 3), cp = rp; endspy(S)hold on[m,n] = size(S);if length(rp) > 2   k = length(rp)-2;   X = [zeros(1,k); n+ones(1,k)];   Y = rp(2:k+1) - 0.5;   Y = [Y; Y];   plot(X,Y,'w-') endif length(cp) > 2   k = length(cp)-2;   X = cp(2:k+1) - .5;   X = [X; X];   Y = [zeros(1,k); m+ones(1,k)];   plot(X,Y,'w-') endaxis('ij')hold off

⌨️ 快捷键说明

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