matlab M-file

matlab M-file - ... %7-1,0,0,0 ... %8 3,1,1,1 ... %9...

Info iconThis preview shows pages 1–6. Sign up to view the full content.

View Full Document Right Arrow Icon
Sheet1 Page 1 n = 18 m = 50 joint = [0,0,0 ... %1 0,12,0 ... %2 10,0,0 ... %3 10,12,0 ... %4 20,0,0 ... %5 20,12,0 ... %6 30,0,0 ... %7 30,12,0 ... %8 40,0,0 ... %9 40,12,0 ... %10 5,0,-5 ... %11 5,12,-5 ... %12 15,0,-5 ... %13 15,12,-5 ... %14 25,0,-5 ... %15 25,12,-5 ... %16 35,0,-5 ... %17 35,12,-5] . .. %18 assembly = [1,2 ... %1 1,3 ... %2 3,4 ... %3 3,5 ... %4 5,6 ... %5 5,7 ... %6 7,8 ... %7 7,9 ... %8 9,10 ... %9 2,4 ... %10 4,6 ... %11 6,8 ... %12 8,10 ... %13 1,11 ... %14 11,3 ... %15 11,13 ... %16 11,12 ... %17 13,3 ... %18 13,5 ... %19 13,15 ... %20 13,14 ... %21 15,5 ... %22 15,7 ... %23 15,17 ... %24 15,16 ... %25 17,7 ... %26 17,9 ... %27 17,18 ... %28 12,2 ... %29 12,4 ... %30 12,14 ... %31 14,4 ... %32
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Sheet1 Page 2 14,6 ... %33 14,16 ... %34 16,6 ... %35 16,8 ... %36 16,18 ... %37 18,8 ... %38 18,10 ... %39 1,4 ... %40 4,5 ... %41 5,8 ... %42 8,9 ... %43 11,14 ... %44 15,18 ... %45 14,15 ... %46 3,14 ... %47 5,14 ... %48 5,16 ... %49 7,16] . .. %50 forceJ = [3,1,1,1 ... %1 3,1,1,1 ... %2 -1,0,0,0 ... %3 -1,0,0,0 ... %4 -1,0,LOADY,LOADZ ... %5 -1,0,LOADY,LOADZ ... %6 -1,0,0,0
Background image of page 2
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 4
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 6
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: ... %7-1,0,0,0 ... %8 3,1,1,1 ... %9 3,1,1,1 ... %10-1,0,0,0 ... %11-1,0,0,0 ... %12-1,0,0,0 ... %13-1,0,0,0 ... %14-1,0,0,0 ... %15-1,0,0,0 ... %16-1,0,0,0 ... %17-1,0,0,0] . .. %18 for i = 1:m stretch(i) = 2400*1000 for i=1:n xi=joint(i,1) yi=joint(i,2) zi=joint(i,3) text (xi,yi,zi,num2str(i)) end % index = 1 [Jforce,Mforce,Jdispl,Mdispl] = . .. truss3(n,m,joint,assembly,forceJ,stretch,index) % Sheet1 Page 3 peak_klb = 18*A maxMforce_klb = max(abs(Mforce/1000)) maxJdispl = max(abs(Jdispl*12)) maxDX_in = maxJdispl(2),maxDY_in = maxJdispl(3),maxDZ_in = maxJdispl(4) title('Group Seven Bridge') xlabel('x in feet') ylabel('y in feet') zlabel('z in feet') print group_seven_bridge.jpg -djpeg Sheet1 Page 4 LOADZ = -20000/2 LOADY = 1000/2 A = 100 Sheet1 Page 5 end stretch(1) Sheet1 Page 6...
View Full Document

This note was uploaded on 04/21/2008 for the course MAE 206 taught by Professor Annahoward during the Fall '08 term at N.C. State.

Page1 / 6

matlab M-file - ... %7-1,0,0,0 ... %8 3,1,1,1 ... %9...

This preview shows document pages 1 - 6. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online