x and map
shows a spine
.loaded and displayed an image
color map jet
colormap (bone) looks like an xray image
map- 1st column is red, 2nd column is green and 3rd column i
Intention: Provide practic ewith repetitive structures in context of a scenario that can ocur during development of numerical solutions to biomedial problems
Attention: iterative approximation until convergence threshold is reached
Variable names variable=expression
Must begin with a letter
After 1st characters: letter numbers underscore character
mnemrnonic names TempAtSurf
delete variables from workspace: clear
matrix:2D(or greater) every value in
N = [O2]
dC/dt = D*d^2C/dx^2 + N
change in concentration of O2 =
mass diffusivity * graduat of concentration 'spatial location +O2 concentration
dT/dt= &d^2T/dx^x +g/k (heat energy generated or consumed
Intention: important data analysis/statistical concepts
Generate random numbers
Attention: Variance & Standard deviation
Random # generation
Generate 10,000 random#s from a gaussian disribution
>load filename.ext(e.g. data_matrix.mat)
> m=[1 2 3;4 5 nan];
"so that a missing data won't affect the evluation of the dataset.(mean, max, std,.etc.)"
2.5000 3.5000 NaN
2.5000 3.5000 3.0000
Do as I say, not as I do.
Being comfortable w/function calls
MATLAB wipe out built in function after you rewrite it.(you can overwrite some functions.)
Creating & manipulating symbolic variables
Ungraded problem set 10
ZyBook: Chapter 16
y = 2*(x+3)^2/(x^2+6*x+9)
x = sym ('x')
syms k0 Q R T
No need to deal with .*,./,.
syms P V n R T
w animal mass
v vital capacity
plot t vs w
Developing coating for a drug eluting stat
- batch of stents -> is the thickness of the coating the same as in previous batches
- (generate a testable hypothesis)
Signal anaysis(generating, frequency analysis)
BME 130 140 180
Basic bio statistics
Curve fitting -> model data w/an equation
Quality of the fit
6 data points
6 "fitted" data pts. from y = -3*x
Ungraded problem set #2 uploaded
X=[4 90 85 75
2 55 65 75
3 78 82 79
1 84 92 93]
1). Max value in each column: max(x) -> ans=[4 90 92 93]
2). Row in which 1) occurs? [MaxValEachCol, Rowwith MaxVal]=max(x)
3). Max value in each row: max(x)
System of linear equations
Create system of linear equations from separate equations (i.e., circuit analysis)
Methods to solve systems of linear equations (left-divide, inv function)
Extra Credit 2
Extra Credit 2
Due 21 Mar 2017 at 5:00pm in EEE Dropbox ExtraCredit2.
Turn in a ZIP file containing all M-files required to run your code without error
INSTRUCTIONS FOR SUBMISSION:
You must have one M-file called extracre
OPTIONAL INDIVIDUAL PROJECT
Due: 11 Mar 2016, 5:00 PM
(late projects will not be accepted, for any reason)
These projects each are individual projects - you are not allowed to work with anyone
else (not even previous team members).
1. The equation for the volume of a hollow sphere is:
where ri is the inner radius and ro the outer radius. Write a
set of commands that you would enter into the Command
Window to evaluate this equation. Assig
function [number_of_instances,e_appx] = method_to_appx_e
%eapprox= This functions purpose is to approximate the
%mathematical constant e
K1=100; %K is a random integer I chose to generate the random array
A=randi([1,K1],[1,K1]);% a generates an array of r
6 Jan 2016 Group Practice Problems - Solutions
Create a variable to store the atomic weight of copper (63.55).
> copperAtWt = 63.55
Identify which name in each of the following pairs is a legitimate MATLAB
want to understand how Congress really works? Then u have to understand the committee system.
IN 1995, Woodrow Wilson wrote The House sits to sanction the conclusions of its committees. It
legislates in its committee rooms; not by
Does the size of a Senators State make a difference in the kind of job he/she does?
Big state Senators (CA, FL, TX) more busy constantly raising donation.
Big state Senators less time for policymaking cause of pressures from constituents & m
Congress gets little respect.
3 major criteria for evaluation:
- Republican takes majority in the House.
- Women are under-represented in Congress. 80% of the members of the Congress are men.
p. 384 of Act
Rule Committee rules
Motion to recommit
How did Obamacare get through?
Health insurance for almost anyone; Failed in 1949, 1962, 1978, 1994;
58 Democratic Senators elected in 2008 - 2 short of supermajority to
Basic questions about financing process:
1. Can rich individuals really buy any elected office they want? (NO)
Give you the ability to draw attention to your campaign but not really contribute to the success.
Campaign contributions are earned money which
American Public Opinion:
Is the American public well informed enough to guide the policies of the U.S government?
Does the lack of public information about issues pose an especially worrisome problem for the conduct
of U.S. foreign policy?
Story of Mike P
The Declaration of Independence, the armed rebellion, the American revolution
Ideas behind the American Revolution: the Britain Parliament defended
its territory with the cost of the colonists' interest in America after the French and Indian War.
Experienced founder of America is familiar with self-governing:
George Washington, Thomas Jefferson, Samuel Adams, and John Adams.
Difference in the initiator between the French Revolution
and the American Revolution generate differe
Problem Set 3
Problem Set 3
Due 15 Mar 2017 at 2:00pm in EEE Dropbox ProbSet3.
Turn in a ZIP file containing all M-files required to run your code without error.
If you are working in a group, then only one group member needs to turn in