Determine the equation of the elastic curve for the beam using the x coordinate that is valid for 0 < x < L/2. Specify the slope at A and the beam's maximum deflection. EI is constant.
ENGR 121 B Lab Notes for 9/28/2016 Spencer Kociba ● vec=a:b:c ○ a=min/starting number ○ b=increment ○ c=max number ● logspace(X1, X2, N) ○ X1=starting point is 10^X1 ○ X2= ending point is 10^X2 ○ N= number of elements created ● x=([a:b], c) ○ a=start ○ b=end ○ c=the last element of the vector ○ Ex. mat=([5:1:3]; 1:3; 44, 9, 2) ■ >>> ● numel(matrix name) ○ Counts number of elements in the specified matrix/vector ● x=mat(3:) ○ Creates a row vector using only the elements of row 3 ● v(v(2)) ○ Refers to element (v(2)). The value of the second element in the matrix is the element MATLAB will refer to ■ Note: will come up with an error if the element doesn’t exist in the vector ● v(n)=[] ○ Removes the nth element in v and reduces the size of the vector by 1 (does this by creating an empty matrix to delete the elements) ● ~ = ○ Is not equal ● % ○ Use this to put comments in your code; these are not computed while running the code and can be used to explain certa