9/12/10 6:11 PM
D:\My Study\10FALL\Mech305\my solutions\Mech305_C2_solution.m
1 of 2
% Mech 305
% Fall 2010
% Instructor Prof. Herman Nied
% Computational Homework Problem #2
%*
%Create a computer program (either in MATLAB, FORTRAN, or C+), which will
%ac
A Matlab Cheat-sheet (MIT 18.06, Fall 2007)
Basics:
save 'file.mat'
save variables to file.mat
load 'file.mat'
load variables from file.mat
diary on
record input/output to file diary
diary off
stop recording
whos
list all variables currenly defined
clear
Solid Mechanics Cable Problem, H. F. Nied, Lehigh University, 2007
Discussion of Problem 3.4
Problem Statement
Cables AB and BC each have an effective area of 125 mm2. The lengths of cables
AB and BC are 500 and 750 mm, respectively. A vertical force of P
Mech 305 Computational Homework Problem #2
Solution of Problem 2.21
Principle stresses(kpsi):
Sigma(1):7.01230639
Sigma(2):1.89020384
Sigma(3):-8.90251024
Directional cosines for Sigma(1):
x:0.29611615 y:0.95436036
z:0.03887832
Directional cosines for Sig
9/1/10 7:18 PM
%
%
%
%
%
D:\My Study\10FALL\Mech305\Mech305_C1_solution.m
Mech 305
Fall 2010
Instructor Prof. Herman Nied
Computational Homework Problem #1
Newton-Raphson technique
clc
clear all
% Set constants
s = 5281.716;
0t
L = 5280;
0t
% Set initial