Honors Engineering models Bar Charts Review
Bar Charts
Bar charts are graphs of rectangular bars with the length of the bars
proportional to the value represented.
Bar charts can be used to represent discrete data (data that changes over
discrete inter
Honors Engineering models Quiz 2 review
Dataset arrays are 2-dimensional. You must specify row and column just like
indexing into a matrix.
> grade(1:2,1:5)
ans =
Name
HW1 HW2 HW3
HW4
'John'
80
78
85
82
'Fred'
80
78
100
95
Note: We see rows 1 and 2 and co
Honors Engineering models quiz 1 review
Bar Charts
Bar charts are graphs of rectangular bars with the length of the bars
proportional to the value represented.
Bar charts can be used to represent discrete data (data that changes over
discrete intervals
Honors Engineering models
Pie Charts
A circular graph which is divided into sectors. The arc length of a sector
displays how much the item associated with that sector contributes to the
whole set.
Very simple, easy to view, type of graph.
Can be difficul
Honors Engineering Models scatter plots review
Scatter Plots
Plot of individual data points of one variable vs. another.
Used to give a visual impression of how one variable might affect another
variable.
For example, if all the data points happen to
Honors Engineering models section 2 review
The expanded dataset array can be saved in a MATLAB data file (.mat file) or the
new columns can be added to the original excel file.
To save the expanded grade dataset array as a MATLAB datafile, simply use the
Honors Enginering Models section 4 review
A few of the many applications for analyzing large sets of Data:
Predicting Catastrophic Weather early enough to allow safe evacuation or
preparation.
Monitoring Customer Buying Habits.
DNA Analysis to predict, pr
Honors Engineering models section 6 review
Create a group scatter plot (grouped by airline) of delay time (y-axis) vs.
scheduled departure time (hour).
Problem: Departure Time is a string how do we extract the hour?
> datevec(F.Depart(1:5)
ans =
2014
1
1
Honors Engineering Models section 3 review
Dataset arrays are 2-dimensional. You must specify row and column just like
indexing into a matrix.
> grade(1:2,1:5)
ans =
Name
HW1 HW2 HW3
HW4
'John'
80
78
85
82
'Fred'
80
78
100
95
Note: We see rows 1 and 2 and
Engineering models codec review
Suppose we consider any departure less than 15 minutes late acceptable to
customers. What percentage of Delta flights departed less than 15 minutes late?
> DL_Flights = find(strcmp(F.Carrier,DL');
> OnTime = sum(F.Delay(DL_
Engineering models links review
Substitute in the values for link lengths and desired gripper position using subs:
> L1 = 3; L2 = 2; x = 2.4; y = 3.2;
> f1 = subs(f1)
f1 =
12/5 = 2*cos(Th1 + Th2) + 3*cos(Th1)
> f2 = subs(f2)
f2 =
16/5 = 2*sin(Th1 + Th2) +
Engineering Models expressions review
Symbolic Expressions
The Subs Function
Example of Subs
> f = sym('2*x^2+4*x+5')
f = 2*x^2 + 4*x + 5
> x = 3; result = subs(f)
result = 35
% Plugs in 3 for x, result is a symbolic constant
> x = 1:10; result = subs(f
Engineering models common error review
Common Error
Suppose we want to locate all of the Frontier flights that left on 11/23/13.
Dont split the two conditions like this:
> carrier_loc = find(strcmp(F.Carrier,'F9')
carrier_loc =
390
391
392
393
394
395
39
Engineering Models possible solution review
Two possible solutions:
Th1 = 82.0851o and Th2 = -75.5225o
Th1 = 24.1751o and Th2 = 75.5225o
Verify Results?
> x = L1*cosd(Th1(1) + L2*cosd(Th1(1)+Th2(1)
x = 2.4000
> y = L1*sind(Th1(1) + L2*sind(Th1(1)+Th2(1)
y
Engineering Models quiz 1 review
Using Symbolic Toolbox for
Trig Functions
Caution: When using symbolic toolbox for trig functions, always use the radian
functions (sin, cos, tan ). You cannot use the degree functions (cosd, sind, tand).
> f = sym('tand(
Engineering models understanding review
Test Your Understanding
Take the quiz at end of Video A
The Solve Function
Examples of Solve
> f1 = sym('P*V = n*R*T')
f1 =
P*V = R*T*n
> T = solve(f1,'T')
T = (P*V)/(R*n)
> P = solve(f1,'P')
P = (R*T*n)/V
> n =
Engineering models symbolic review
Symbolic Variables
The following variables can create difficulty in some of the symbolic toolbox
functions. Dont use them!
I and i
E and e
D
Any variable name that starts with the letters: th
For example: theta, th1, tha
Engineering models robot review
Two link robot arm
Define a coordinate system by designating the base of the arm to be the
origin (0,0)
What are the x and y coordinates of the joint and the end (gripper) in terms
of the lengths of the links and the angles