% Minc=Matriz de Incidencia Elementos-Barras % Minc(i,j): i=Elemento j=Barra % Barra 1 = m % Barra 2 = S % Barra 3 = R % Barra 3 = T % Elemento 1 = NS % Elemento 2 = NR % Elemento 3 = NT % Elemento 4 = Sm % Elemento 5 = Rm % Elemento 4 = TS %[Minc]=subMinc(1); function [Minc]=subMinc(u) Minc=zeros(6,4); Minc(1,2)=-1; Minc(2,3)=-1; Minc(3,4)=-1; Minc(4,1)=-1; Minc(4,2)=1; Minc(5,1)=-1; Minc(5,3)=1; Minc(6,2)=-1; Minc(6,4)=1;