forked from swcarpentry/matlab-novice-inflammation
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmotivation.html
119 lines (109 loc) · 4.34 KB
/
motivation.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0">
<title>Programming with MATLAB</title>
<script src="js/deckjs-custom.js"></script>
<script>
// TODO: finer filter on what is needed (vs profile-5)
includedeck("css/swc-slides.css", {
BEFOREINIT: function() {
$(".slide.auto li:not(li li):not(.notslide)").addClass("slide");
}
});
</script>
</head>
<body>
<div class="deck-container">
<div class="slide title-slide" data-container-class="no-status">
<h1 class="var-title"></h1>
<img class="logo" src="img/software-carpentry-banner.png" alt="Software Carpentry"/>
</div>
<!-- Begin slides. Just make elements with a class of slide. -->
<section id="the-problem" class="slide level2">
<h1>The Problem</h1>
<ul>
<li>Scientists are using computers to do amazing things, like
<ul>
<li>predict the physics of aircraft,</li>
<li>develop atomic and molecular models to better understand matter,</li>
<li>simulate the motion of planets, stars and galaxies, and</li>
<li>study the biological processes that form the building blocks of life.</li>
</ul></li>
</ul>
</section>
<section id="the-problem-1" class="slide level2">
<h1>The Problem</h1>
<ul>
<li><p>But for every successful simulation of global climate, there are a dozen more groups struggling just to get their program to run.</p></li>
<li><p>Many of them tweak and tinker for months, or years, till their code does something more than produce zeros, or grind to a halt.</p></li>
</ul>
</section>
<section id="the-solution" class="slide level2">
<h1>The Solution</h1>
<ul>
<li>All of this pain can be avoided by
<ul>
<li>writing programs that are well-documented,</li>
<li>properly reusing code in programs,</li>
<li>automating tasks that are done often, and</li>
<li>systematically finding and fixing bugs when they appear.</li>
</ul></li>
</ul>
</section>
<section id="the-solution-1" class="slide level2">
<h1>The Solution</h1>
<ul>
<li>The good news is that none of this is rocket science.</li>
<li>Like callibrating an oscilloscope, or titrating a solution, they are skills that are quickly picked up, and become easier with practice</li>
<li>…and they will be the focus of today’s lesson.</li>
</ul>
</section>
<section id="why-matlab" class="slide level2">
<h1>Why MATLAB?</h1>
<ul>
<li>We use MATLAB in our lesson because
<ul>
<li>we have to use <em>something</em> for our lesson,</li>
<li>it’s well documented,</li>
<li>it has a large user base among scientists in academia and the industry, and</li>
<li>it has a large library of packages for performing diverse tasks.</li>
</ul></li>
</ul>
</section>
<section id="todays-lesson" class="slide level2">
<h1>Today’s Lesson</h1>
<ul>
<li>In today’s lesson, we’ll learn how to
<ul>
<li>load, analyze and visualize data in MATLAB,</li>
<li>get our program to <em>repeat</em> tasks by writing <em>loops</em>,</li>
<li>get our programs to <em>make decisions</em> using <em>conditionals</em>,</li>
<li>make our code <em>reusable</em> by writing <em>scripts</em> and <em>functions</em>,</li>
<li>write programs that <em>check themselves</em> for bugs,</li>
</ul></li>
</ul>
</section>
<section id="todays-lesson-1" class="slide level2">
<h1>Today’s Lesson</h1>
<ul>
<li>…and along the way, learn some good programming practices, that will save us plenty of time, sweat and tears in the long run.</li>
</ul>
</section>
<!-- End slides. -->
<!-- Begin extension snippets. Add or remove as needed. -->
<!-- deck.navigation snippet -->
<div aria-role="navigation">
<a href="#" class="deck-prev-link" title="Previous">←</a>
<a href="#" class="deck-next-link" title="Next">→</a>
</div>
<!-- footer -->
<p class="deck-status deck-progress-10"> <span class="deck-status-current"></span> / <span class="deck-status-total"></span> − <span class="var-title">will be replaced by the title</span></p>
<!-- progress bar -->
<div class="progress-bar" data-progress-size=":spe.bottom(0, 1) ; left: slide.left+'px' ; height: designRatio+'px'" data-progress="width: detail.p * slide.width" style="position: absolute;"> </div>
<!-- End extension snippets. -->
</div>
</body>
</html>