Mat 275 MATLAB LAB #1
Name: Brandon Grebe
Instructor: Anmin
Exercise #1
All points with coordinates x = r cos() and y = r sin(), where r is a
constant, lie on a circle with radius r, i.e. satisfy the equation x2 + y2 =
r2. Create a row vector for with the
Mat 275 MATLAB LAB #1
Name: Brandon Grebe
Lab Day and Time: Wednesday
10:30
Instructor: Chowell Puente
Exercise #1
Part A
function LAB04ex1
t0 = 0;
tf = 40; ets the time interval
Y0 = [-1;0];
[t,Y] = ode45(@f,[t0,tf],Y0,[]); %called to solve differential
MATLAB sessions: Laboratory 4
MAT 275 Laboratory 4
MATLAB solvers for First-Order IVP
In this laboratory session we will learn how to
1. Use MATLAB solvers for solving scalar IVP
2. Use MATLAB solvers for solving higher order ODEs and systems of ODES.
Fir
MATLAB sessions: Laboratory 1
MAT 275 Laboratory 1
Introduction to MATLAB
MATLAB is a computer software commonly used in both education and industry to solve a wide range
of problems.
This Laboratory provides a brief introduction to MATLAB, and the tools
MATLAB sessions: Laboratory 6
MAT 275 Laboratory 6
Forced Equations and Resonance
In this laboratory we take a deeper look at second-order nonhomogeneous equations. We will concentrate
on equations with a periodic harmonic forcing term. This will lead to
MAT 275 MATLAB LAB 4
NAME:
LAB DAY and TIME:
Instructor:
Exercise 1
Part a)
function LAB04ex1
t0 = 0; tf = 40; y0 = [-1;0]; 0or part d [1.5, 5]
[t,Y] = ode45(@f,[t0,tf],y0);
y = Y(:,1); v = Y(:,2); % y in output has 2 columns corresponding
to u1 and u2
fi
%DIFFERENTIAL EQUATIONS LAB 6
%Exercise 1
% part(a)
The period of oscillation is about 4.49 seconds. Since is less than 0, the first part of the
piecewise equation is used. This equations returns: = 0.6015 radians.
% part(b)
function LAB06ex1
clc
omega0 =
Lab 4
Use ex_with_2eqs.m in MATLAB Code.
Exercise 1: (b) You must include ALL values of t at
which y reaches a local maximum. Do not just include 1 value.
Also, do NOT unclude ALL the output from [t, Y]. Only the
necessary output to answer the question. G
MAT 275 Laboratory 6
Forced Equations and Resonance
In this laboratory we take a deeper look at second-order nonhomogeneous equations. We will concentrate
on equations with a periodic harmonic forcing term. This will lead to a study of the phenomenon know
MAT 275 Laboratory 3
Numerical Solutions by Euler and Improved Euler Methods
(scalar equations)
In this session we look at basic numerical methods to help us understand the fundamentals of numerical
approximations. Our objective is as follows.
1. Implemen
MAT 275 Laboratory 1
Introduction to MATLAB
MATLAB is a computer software commonly used in both education and industry to solve a wide range
of problems.
This Laboratory provides a brief introduction to MATLAB, and the tools and functions that help
you to
MAT 275 - MATLAB Assignment #6
% Question 1
The behavior of the forced oscillations as per the figure L6a is identical to a sinusoidal
waveform. Therefore, by the method of visual inspection we can calculate the time period
approximately as 4.5secs. Also
MAT 275 Laboratory 4
MATLAB solvers for First-Order IVP
In this laboratory session we will learn how to
1. Use MATLAB solvers for solving scalar IVP
2. Use MATLAB solvers for solving higher order ODEs and systems of ODES.
First-Order Scalar IVP
cfw_
Consi
Mat 275 MATLAB LAB #6
Name: Brandon Grebe
Lab Day and Time: Wednesday
10:30
Instructor: Chowell Puente
Exercise #1
Part A
By running the given function file we can see the graph of the solution as
well as find the period of this forced oscillation.
functi
Math 275 Test 1 July 15, 2014
KEY
1. Below are four direction fields and five differential equations. Write the letter of the differential
equation in the box next to the direction field it creates. [4 pts]
. =
+
; . = . ; = . ;1 + = . ; = ) 2(
MAT 275 Written Homework #1
1.1
SOLUTIONS
Due: January 24
Solve the following problems, showing any necessary work.
1. [1 point] Find and classify all equilibrium solutions of the dierential equation below.
dy
y 3 3y 2
=
dx
8 + y + y2
Solution: The equili
MAT 275 Laboratory 1
Introduction to MATLAB
MATLAB is a computer software commonly used in both education and industry to solve a wide range
of problems.
This Laboratory provides a brief introduction to MATLAB, and the tools and functions that help
you to
MAT 275 Written Homework #7
6.1, 6.2
SOLUTIONS
Due: April 11
Solve the following problems, showing any necessary work.
1. [1 point] Use the denition of the Laplace Transform to nd L(t).
Solution:
test dt = t
L(t) =
0
est
s
0
1
0
est
dt
s
(by integration
MAT 275 Laboratory 5
The Mass-Spring System
In this laboratory we will examine harmonic oscillation. We will model the motion of a mass-spring
system with dierential equations.
Our objectives are as follows:
1. Determine the eect of parameters on the solu
MAT 275 Laboratory 2
Matrix Computations and Programming in MATLAB
In this laboratory session we will learn how to
1. Create and manipulate matrices and vectors.
2. Write simple programs in MATLAB
NOTE: For your lab write-up, follow the instructions of LA
% EX1
%A 6 PTS
type LAB04ex1
LAB04ex1
%B 2PTS
0o not print the entire vectors t and Y, but include a few values which
how where maxima occur
%when t=7.4353,13.6632,19.932 does y reaches a local maximum
%C 2 PTS
%y keeps a constant window between maximum a
% Lab 2 - Your Name - MAT 275
% Excercise 1
A=rand(2,2);
% B=?
% b=?
% c=?
% d=?
% After creating these objects, parts (a)-(f) ask you to perform certain
% operations with them. If the output is less than say 15 digits, go ahead
% and print the result. To
% Lab 3 - Andreas Silva - MAT 275
%Please make sure that all outputs that the assignment asks for are
%printed. Make sure all function mfiles that you call are within your
%working directory.
% This script can be "published" when you are done or as you go
%Exercise 1
A = [1 4 2; 2 5 8; 3 6 9]; %matrix A
B = [1 2 3; 4 5 6; 7 8 9]; %matrix B
b = [4;23;27]; %matrix b
c = [4 3 2]; %matrix c
d = [1;2;3]; %matrix d
A.*B 0o the calculation using .* as in mutiple dimension matrix operation
B.*A
c*B
% just * for si