====== Differences ====== This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
gibson:teaching:fall-2014:math445:hw2 [2014/09/15 11:56] gibson |
gibson:teaching:fall-2014:math445:hw2 [2014/09/22 09:06] (current) gibson |
||
---|---|---|---|
Line 4: | Line 4: | ||
sum, any, all, linspace | sum, any, all, linspace | ||
- | plot, semilogy, semilogx, xlabel, ylabel, legend, axis | + | plot, semilogy, semilogx, xlabel, ylabel, legend, axis, |
+ | hist, randn | ||
**Problem 1:** Write a Matlab expression that sums the first N of each series and evaluate it for N=100. | **Problem 1:** Write a Matlab expression that sums the first N of each series and evaluate it for N=100. | ||
Line 51: | Line 52: | ||
appropriate plotting function. Again, it ain't ''plot''! | appropriate plotting function. Again, it ain't ''plot''! | ||
- | **Problem 11:** Make a histogram of 1000 random numbers from a normal (Gaussian) distribution. | + | **Problem 11:** Make a histogram of 1000 random numbers from a normal (Gaussian) distribution. Use Matlab's ''hist'' and ''randn'' functions. |