codigo matlab armaduras

2
clear all; %ARMADURAS PLANAS format long nd=input( 'INR!S! !L NUM!R" D! N"D"S=' #; ne=input( 'INR!S! !L NUM!R" D! !L!M!N$"S=' #; D=input('INR!S! !L DIM!$R" D! LAS S!&&I"N!S(mm#=' #; !=input('INR!S! !L M"DUL" D! !LAS$I&IDAD(Nmm)#=' #; tc=input( 'INR!S! $A*LA D! &"N!&$I+IDAD(,olo nodo,#=' #; %!-!MPL" ./ );) 0;0 1;1 );1 /;1 2;2 /3 ni=.3; for i=/4nd  di,p('INR!S! LAS &"RD!NADAS D!L N"D" ' #;di,p(i#;  n(i5/#=input( 'N(6#= '#;  n(i5)#=input( 'N(7#= '#; end 8=input('INR!S! !L +!&$"R &"LUMNA D! 8U!R9AS=' #; &&/=input( 'INR!S! &"NDI&I"N!S D! &"N$"RN" .po,ici:n alor3=' #; lm=.3; A=pi1<D); r,=>ero,()<nd#; ?i@=>ero,()<nd#;acu=.3;acu=.3;8&=.3; le=.3;B=.3;R=.3;l=.3;m=.3;&&=.3; .fc5cc3=,i>e(&&/#; for i=/4)<nd  cont=C;  for @=/4fc  if i==&&/(@5/#  cont=/;  c/=&&/(@5/#;  c)=&&/(@5)#;  end  end  if cont==/  &&(i5/#=c/;  &&(i5)#=c);  el,e  &&(i5/#=C;  &&(i5)#=C;  end end for i=/4ne  le(i#=,rt((n(tc(i5)#5/#En(tc(i5/#5/##)F(n(tc(i5)#5)#E n(tc(i5/#5)##)#;  l(i#=(n(tc(i5)#5/#En(tc(i5/#5/##le(i#;  m(i#=(n(tc(i5)#5)#En(tc(i5/#5)##le(i#;  p,/=tc(i5/#<)E/;p,)=tc(i5/#<);p,0=tc(i5)#<)E/;p,1=tc(i5)#<);  r,(p,/5p,/#=l(i#);r,(p,/5p,)#=l(i#<m(i#;r,(p,/5p,0#=E l(i#);r,(p,/5p,1#=El(i#<m(i#;  r,(p,)5p,/#=l(i#<m(i#;r,(p,)5p,)#=m(i#);r,(p,)5p,0#=E l(i#<m(i#;r,(p,)5p,1#=Em(i#);  r,(p,05p,/#=El(i#);r,(p,05p,)#=E l(i#<m(i#;r,(p,05p,0#=l(i#);r,(p,05p,1#=l(i#<m(i#;  r,(p,15p,/#=El(i#<m(i#;r,(p,15p,)#=E m(i#);r,(p,15p,0#=l(i#<m(i#;r,(p,15p,1#=m(i#);  ?i@=?i@F!<Ale(i#<r,;  r,=>ero,()<nd#; end

Transcript of codigo matlab armaduras

Page 1: codigo matlab armaduras

8/15/2019 codigo matlab armaduras

http://slidepdf.com/reader/full/codigo-matlab-armaduras 1/2

clear all;%ARMADURAS PLANASformat longnd=input('INR!S! !L NUM!R" D! N"D"S='#;ne=input('INR!S! !L NUM!R" D! !L!M!N$"S='#;D=input('INR!S! !L DIM!$R" D! LAS S!&&I"N!S(mm#='#;!=input('INR!S! !L M"DUL" D! !LAS$I&IDAD(Nmm)#='#;

tc=input('INR!S! $A*LA D! &"N!&$I+IDAD(,olo nodo,#='#;%!-!MPL" ./ );) 0;0 1;1 );1 /;1 2;2 /3ni=.3;for i=/4nd  di,p('INR!S! LAS &"RD!NADAS D!L N"D" '#;di,p(i#;  n(i5/#=input('N(6#= '#;  n(i5)#=input('N(7#= '#;end8=input('INR!S! !L +!&$"R &"LUMNA D! 8U!R9AS='#;&&/=input('INR!S! &"NDI&I"N!S D! &"N$"RN" .po,ici:n alor3='#;lm=.3;A=pi1<D);r,=>ero,()<nd#;

?i@=>ero,()<nd#;acu=.3;acu=.3;8&=.3;le=.3;B=.3;R=.3;l=.3;m=.3;&&=.3;.fc5cc3=,i>e(&&/#;for i=/4)<nd  cont=C;  for @=/4fc  if i==&&/(@5/#  cont=/;  c/=&&/(@5/#;  c)=&&/(@5)#;  end  end  if cont==/  &&(i5/#=c/;

  &&(i5)#=c);  el,e  &&(i5/#=C;  &&(i5)#=C;  endendfor i=/4ne  le(i#=,rt((n(tc(i5)#5/#En(tc(i5/#5/##)F(n(tc(i5)#5)#En(tc(i5/#5)##)#;  l(i#=(n(tc(i5)#5/#En(tc(i5/#5/##le(i#;  m(i#=(n(tc(i5)#5)#En(tc(i5/#5)##le(i#;  p,/=tc(i5/#<)E/;p,)=tc(i5/#<);p,0=tc(i5)#<)E/;p,1=tc(i5)#<);  r,(p,/5p,/#=l(i#);r,(p,/5p,)#=l(i#<m(i#;r,(p,/5p,0#=E

l(i#);r,(p,/5p,1#=El(i#<m(i#;  r,(p,)5p,/#=l(i#<m(i#;r,(p,)5p,)#=m(i#);r,(p,)5p,0#=El(i#<m(i#;r,(p,)5p,1#=Em(i#);  r,(p,05p,/#=El(i#);r,(p,05p,)#=El(i#<m(i#;r,(p,05p,0#=l(i#);r,(p,05p,1#=l(i#<m(i#;  r,(p,15p,/#=El(i#<m(i#;r,(p,15p,)#=Em(i#);r,(p,15p,0#=l(i#<m(i#;r,(p,15p,1#=m(i#);  ?i@=?i@F!<Ale(i#<r,;  r,=>ero,()<nd#;end

Page 2: codigo matlab armaduras

8/15/2019 codigo matlab armaduras

http://slidepdf.com/reader/full/codigo-matlab-armaduras 2/2

for i=/4)<nd  if i==&&(i5/#  B(i5/#=&&(i5)#;  el,e  8&=.8&;8(i#3;  for @=/4)<nd  if @G=&&(@5/#

  acu=.acu5?i@(i5@#3;  end  end  end  acu=.acu;acu3;  acu=.3;endB/=acuH8&;for i=/4)<nd  if iG=&&(i5/#  B(i5/#=B/(/5/#;

.f5c3=,i>e(B/#;  if f=)

  B/=B/()4f5/#;  end  endendfor i=/4)<nd  if i==&&(i5/#  r=?i@(i5/4)<nd#<BE8(i5/#;  R=.R;r i3;  endend!S8=.3;for i=/4ne  p,/=tc(i5/#<)E/;p,)=tc(i5/#<);p,0=tc(i5)#<)E/;p,1=tc(i5)#<);  !S8(i#=!le(i#<.El(i# Em(i# l(i#

m(i#3<.B(p,/5/#;B(p,)5/#;B(p,05/#;B(p,15/#3;endformat ,ortdi,p('============='#;di,p('R!SUL$AD"S'#;di,p('============='#;di,p('L"S D!SPLA9AMI!N$"S'#;di,p(B#;di,p('LAS R!A&I"N!S'#;di,p('R!A&&IJN P"SI&IJN'#;di,p(R#;di,p('L"S !S8U!R9"S'#;di,p(!S8'#;