📄 red.m
字号:
function [B]=red(A,b)% B=red(A,b)%-------------------------------------------------------------% PURPOSE% Algorithm for reducing the size of a square% matrix A by omitting rows and columns defined% by the matrix b.%% INPUT:% b : boundary condition matrix% dim(b)= nbc x 1, nbc : number of b's% A : unreduced matrix, dim(A)= nd x nd%% OUTPUT:% B: reduced matrix%-------------------------------------------------------------% LAST MODIFIED: M Ristinmaa 1993-10-06% Copyright (c) Division of Structural Mechanics and% Department of Solid Mechanics.% Lund Institute of Technology%------------------------------------------------------------- [nd,nd]=size(A); fdof=[1:nd]';% pdof=b(:,1); fdof(pdof)=[];% B=A(fdof,fdof);%--------------------------end--------------------------------
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -