필터 지우기
필터 지우기

Assembly stiffness matrix on matlab

조회 수: 2 (최근 30일)
Barone pierre
Barone pierre 2018년 2월 17일
Hello everybody, I need some help to assembly three matrix on matlab in order to have the global stiffness matrix of these elements.
I obtain one code on internet, but it doesn't give the good solution ...
function [K,f]=assem(edof,K,Ke,f,fe) % with Ke: stiffness matrix of elements and K:global stiffness matrix
[nie,n]=size(edof);
t=edof(:,2:n);
for i = 1:nie
K(t(i,:),t(i,:)) = K(t(i,:),t(i,:))+Ke;
if nargin==5
f(t(i,:))=f(t(i,:))+fe;
end
end
This code changes the first matrix of the element 1 ...
Kind regards

답변 (0개)

카테고리

Help CenterFile Exchange에서 Multidimensional Arrays에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by