====== Differences ====== This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
gibson:teaching:spring-2018:math445:lab2 [2018/01/30 06:08] gibson [Part 3: Plots] |
gibson:teaching:spring-2018:math445:lab2 [2018/01/31 16:07] (current) gibson [Part 3: Plots] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Math 445 lab 2: plotting and scripts====== | + | ====== Math 445 lab 2: vectors, plots, and scripts====== |
Do the problems for parts 1 and 2 at the Matlab prompt, saving your work to a file with the ''diary'' command. | Do the problems for parts 1 and 2 at the Matlab prompt, saving your work to a file with the ''diary'' command. | ||
Line 15: | Line 15: | ||
<code Matlab> | <code Matlab> | ||
[] % square brackets | [] % square brackets | ||
+ | , % row separator | ||
+ | ; % col separator | ||
: % colon operator | : % colon operator | ||
' % apostrophe | ' % apostrophe | ||
Line 97: | Line 99: | ||
**16.** Make a plot of a unit circle, i.e. a curve that satisfies $x^2 + y^2 = 1$. Draw the circle with a thick red line, label the axes, and give the plot a title. Make sure the circle looks like a circle and not an oval. Hint: don't try to draw the plot using the equation $x^2 + y^2 = 1$. Instead parameterize the curve in terms of the angle $\theta$, i.e. calculate $x$ and $y$ from $\theta$. | **16.** Make a plot of a unit circle, i.e. a curve that satisfies $x^2 + y^2 = 1$. Draw the circle with a thick red line, label the axes, and give the plot a title. Make sure the circle looks like a circle and not an oval. Hint: don't try to draw the plot using the equation $x^2 + y^2 = 1$. Instead parameterize the curve in terms of the angle $\theta$, i.e. calculate $x$ and $y$ from $\theta$. | ||
+ | (I previously had a problem 17, revisiting the sum of $1/n$...to be written. But on second thought, this problem belongs in lab 3. So expect it there.) | ||
- | **17.** Revisiting the sum of $1/n$...to be written. |