clear,clc
% Project 1
% Creates upper limit for the height
h_up = 47000;
h = 0:1000:h_up;
% Makes the height of each atmosphere
h_topo = 11000;
h_strat = 25000;
% for loop from i to h_up
for i = 1:len
AerE 161 Project 2:
Flight Path of a
Projectile
By:
Zachary Jansen
Section 2H
March 22, 2016
Table of Contents:
Page 1: Cover Page
Page 2: Table of Contents
Page 3: Problem Statement
Page 4: Theory
Pa
Aer E 161
Fall 2015
Homework and Exercises 5
Exercises (to be performed during the lab on Friday, October 9)
6.3, 32, 35; 7.3, 16, 33, 37; 8.1, 13, 18, 24, 25; 9.2, 7, 9, 19, 21, 25, 28
Homework 5 (du
Aer E 161
Fall 2015
Homework and Exercises 1
Exercises (to be performed during the lab on Friday, September 4)
Last lab: 1.12, 14, 16, 20, 24, 29; and 2.1, 2, 3, 8, 11.
This lab: 2.7, 15, 16, 20, 26,
Aer E 161
Fall 2015
Homework and Exercises 9
Exercises (to be performed during the lab on Friday, November 13)
Attend the lab session and sketch several parts in SolidWorks under the guidance of the T
Aer E 161
Fall 2015
Homework and Exercises 6
Exercises (to be performed during the lab on Friday, October 16)
10.1, 6, 17, 23; 11.2, 13, 17; 12.5, 15, 19; 14.1, 2, 3, 9
Homework 6 (due Wednesday, Octo
Aer E 161
Fall 2015
Extra Credit Problem 1
Due Wednesday, December 2, in lecture at 9am
This extra credit assignment is equivalent to one regular homework
Description:
Often in science and engineering
%Prom the user to input the coefficients
A = input('Enter the matrix A in bracket: ');
b = input('Enter the vector b in bracket: ');
n = size(A,1);
d = det(A);
if d = 0
%Check for the nonsingular
disp
Aer E 161
Fall 2015
Homework and Exercises 2
Exercises (to be performed during the lab on Friday, September 11)
4.5, 8, 17, 26, 30, 31
Homework 2 (due Wednesday, September 16, in lecture at 9am)
Probl
Aer E 161
Fall 2015
Homework and Exercises 7
Exercises (to be performed during the lab on Friday, October 23)
14.26, 27, 28, 30, 31, 34
Homework 7 (due Wednesday, October 28, in lecture at 9am)
Proble
Name: Zachary Jansen
AERE 161, Spring 2016
HW # 4
Due date: 03/02/16
Problem 9.1
clear,clc
% Zachary Jansen
% User inputs name of file to be opened
fid = fopen(input('Please enter file name ','s');
%
Project 1
Standard Atmospheric
Table
By:
Zachary Jansen
Aer161
February 20 2016
Table of Contents
Page 1:
Cover Page
Page 2:
Table of Contents
Page 3:
Problem Statement
Page 4:
Theory
Page 5:
Theory C
Name:
Zachary Jansen
AERE 161, Spring 2016
HW #
3
Due date: 02/17/2016
Problem 5.14
clear
clf
% Zachary Jansen
x = rand;
y = rand;
plot(x,y)
hold on
for it = 1:10000
choic = round(rand*2);
if choic =
Aer E 161
Fall 2015
Homework and Exercises 4
No specific exercises this week since Test 1 will be taken during the lab time.
Homework 4 (due Wednesday, September 30, in lecture at 9am)
Problem descrip
Aer E 161
Fall 2015
Homework and Exercises 8
Exercises (to be performed during the lab on Friday, November 6)
14.37, 38, 43, 44, 45, 47
Homework 8 (due Wednesday, November 11, in lecture at 9am)
Probl
Aer E 161
Fall 2015
Homework and Exercises 3
Exercises (to be performed during the lab on Friday, September 18)
5.1, 5, 7, 9, 19, 23, 28, 29, 34, 36
Homework 3 (due Wednesday, September 23, in lecture
lin_lsqfit.m
function [a,b]=lin_lsqfit(x,y);
% Calculate the matrix
S1 = sum(x);
S2 = sum(y);
for i = 1 : length(x);
A2 = x.^2;
AB = x.*y;
end
S3 = sum(A2);
S4 = sum(AB);
% Calculate the coefficient
a
ectu1'e 13, Oct 24th 2016.
Chapter: Systems of Linear Equations.
Consider the system of n linear algebraic equations:
a11x1+ czlzx2 + amx3 +. . .+amxn = b1
aZIX1 + aux2 + a23x3 +. . .+ aznxn = [92
a31
GD +9 CMVL$ M0? '2,er gapour EXAm Lb h
wrll Ge. wrdxe for lhC/A, WZaslamiectme 6, Jan 29t 2018.
Control Flow in MATLAB
There are occasions that we want to repeat a segment of code a
number of differen
1/10/18
What is MATLAB?
What does MATLAB stand for?
MATrix LABoratory
Lecture 1
MATLAB Programming basics
What does MATLAB do?
It is a numerical compu>ng environment
developed by MathWorks
t
ecture 2, Jan 10 2018.
Vectors and Matrices
A matrix is a rectangular array of numbers that is arranged
systematically in rows and columns. A matrix having n rows and m
columns is called an (n x m)
Lecttwe g, Jart rytn 2ot8.
Matrix operator
The transpose operator
versa.
changes rows to columns or vise
,nratth
3'
Example:
B'
returns
ans
znaatlAB
=
B'
if R: 618
R zt z
3
5
7
8
Example:
C2 = A*B'
re
Lecture 7, feE 7M 2018
User-Defined Functions
User defined MATLAB functions are written in M-files. Access a
new function M-file the same way a script M-file is created: select
File > New > mfile from
Lecture 4, Jan 22nd2018
Algorithms
%/An algorithm is the sequence of steps needed to solve a problem
.
Top-down design approach to programming: break a solution
into steps, then further refine each on
C.)
Lecture 9 , ffeE 19m 2018.
File Input/Output (l/O)
If a file has the same number of values on every line, and the same
type, can be used to read from the file into a matrix.
lead Filename.ext
(ext
ecture 5, Jan 241%
Conditional constructions (lf-then-else).
Comparison Operators
less or equal
greater or equal
The resulting type IS logical 1 for true or 0 for false.
f:
The if
[and rowel (0.93)
rend: (cq$3,5>
(waif aqstlilA' m
roman ? I; 0.53 .S. 2) Lecture 8, j-"eE 12 2018.
Strings
V
% Strings are arrays (vectors) with character elements-
=6:
String constants are enclosed
Name: [Type the document title]
AERE 161, Spring 2018
HW #
Due date:
Problem 5.25
clear,clc
user = input('Enter a temperature value in C from -16 to 20: ')
% user input
F = 0;
C = -16;
Celcius = [];
F