# channelflow.org

### Site Tools

gibson:teaching:fall-2014:math445:lecture6-diary

# Differences

This shows you the differences between two versions of the page.

 gibson:teaching:fall-2014:math445:lecture6-diary [2014/09/18 12:19]gibson [Graphical data analysis of log-linear relations] gibson:teaching:fall-2014:math445:lecture6-diary [2014/09/18 12:21] (current)gibson [Graphical data analysis of log-linear relations] Both sides previous revision Previous revision 2014/09/18 12:21 gibson [Graphical data analysis of log-linear relations] 2014/09/18 12:19 gibson [Graphical data analysis of log-linear relations] 2014/09/18 12:16 gibson [Graphical data analysis of log-linear relations] 2014/09/18 11:47 gibson [Math 445 lecture 6: logical array operations and log-linear relations] 2014/09/18 11:46 gibson 2014/09/18 11:44 gibson 2014/09/18 11:35 gibson 2014/09/18 11:27 gibson 2014/09/18 11:26 gibson created 2014/09/18 12:21 gibson [Graphical data analysis of log-linear relations] 2014/09/18 12:19 gibson [Graphical data analysis of log-linear relations] 2014/09/18 12:16 gibson [Graphical data analysis of log-linear relations] 2014/09/18 11:47 gibson [Math 445 lecture 6: logical array operations and log-linear relations] 2014/09/18 11:46 gibson 2014/09/18 11:44 gibson 2014/09/18 11:35 gibson 2014/09/18 11:27 gibson 2014/09/18 11:26 gibson created Line 191: Line 191: ===== Graphical data analysis of log-linear relations ===== ===== Graphical data analysis of log-linear relations ===== - ​ + ==== example 1: a linear relationship ​==== - % ======================================================================= + - % Ok. Let's move on the graphical data analysis + + % Load datafile '​data1.asc'​ into matlab with '​load'​ command % Load datafile '​data1.asc'​ into matlab with '​load'​ command >> D = load('​data1.asc'​); ​ >> D = load('​data1.asc'​); ​ Line 271: Line 270: - % Perfect! ​The functional relation between y and x is y = -0.49 x + 19 + % Perfect! ​So the functional relation between y and x is y = -0.49 x + 19 + ​ + ==== example 2: a log-linear relationship ==== - % Ok, let's move on the the next data file and try to figure out its y = f(x) relation. ​ + ​ + % Load the next data file and try to figure out its y = f(x) relation. ​ >> D = load('​data3.asc'​);​ >> D = load('​data3.asc'​);​ >> xdata = D(:,1); >> xdata = D(:,1);