Evan McPartland 107664831
MEC 102 HW# 4
1
INPUT
% Evan McPartland 107664831
% MEC 102 Spring 2013
% HW# 4 Problem 4.1
k=1;
for t=-9:.5:-.5 % Calculates the values when t is negitive
y(k)=3*t^2+5; % Given formula
k=k+1; % Adds another k to count down
end %
MEC 102 HW #2: 2.10, 2.12, 2.14, 2.15, 2.16
2.10:
% User inputs velocity initial and height initial
v0 = input('Enter initial velocity in (m/s): \n');
h0 = input('Enter initial height in (m): \n');
% Functions for height and velocity as a function of time
Introduction/Theory
In this experiment there is a LRC circuit which will be placed in resonance. The
resonance in AC circuits is a special frequency that is determined by the values of the
inductance, resistance, and capacitance. In a series LRC circuit,
e
m
Lab 9:
of the Electron
Introduction
e
The purpose of this lab is to study the ratio between charge e and mass m ( m ) and the
motion of charged particles in a magnetic field. The experiment was conducted using two similar
e
m
apparatuses, one for deli
Projectile Motion
Introduction
Procedure
Materials
Ramp with a horizontal positioning screw
Clip positioned on down ramp for placing the steel ball reproducibly at same position
Steel ball
Photo gate
Interface box
Computer
Ruler
Sheet of carbon pa
[Type here]
Question 6.8
function area = area2d(x1, y1, x2, y2, x3, y3)
area = (0.5*(x1*(y2-y3)-x2*(y1-y3)+x3*y1-y2);
> area2d(0,0,10,0,15,5)
ans =
25
> area2d(15,5,10,0,0,0)
ans =
-25
Question 6.9
function poly = findpoly(x1,y1,x2,y2,x3,y3,x4,y4,x5,y5)
p
Lab 6:
Magnetic Force 2
Introduction
This purpose of this lab is to measure the torque on a current-carrying coil in a magnetic
field using a current balance. The magnetic field was produced by a set of Helmholtz coils,
which consists of two solenoid magn
McPartland 1
Evan McPartland; 107664831
MEC 102 Spring 2013
HW#2 Due 3/12/2013
Question 2.10
Input:
% Evan McPartland
% 107664831
% MEC 102 Spring HW#2
% This program promts the user for the initial height of the ball and the
% intial velocity of the ball
Input
% Evan McPartland 107664831
% MEC 102 Spring
% HW #3 Question #3.1
% This program calculates if a certain statment is valid.
% A
5 >=5.5
% B
20>20
% C
xor( 17 - pi < 15, pi< 3)
% D
true > false
% E
~(35 / 17) = (35 / 17)
% F
(7 <= 8) = (3 /2 = 1)
%
Saman Berookhim
108365706
2/21/13
MEC-102 HW# 1
Question 2.1
Input
% This is a basic program used to perform basic Matlab functions on a matrix
% Author: Saman Berookhim, MEC 102, Spring 2013
% Created February 21, 2013
array1=[0,.5,2.1,-3.5,6.0;0,-1.1,-6
Saman Berookhim
ID # 108365706
4/30/13
MEC 102
Homework 5
Question 1:
Program:
% Creates random0 function given in textbook which creates random numbers between 0
and 1
function ran=random0(m,n)
global iseed
msg=nargchk(1,2,nargin);
error(msg);
if nargin<
Lab 8:
Resonance
Introduction
The purpose of this lab is to observe the input voltage applied to a series RLC circuit
while monitoring the voltage across parts of the circuit. The circuit was connected to Channel
one and different elements were connected