1 / 34

CSC115: Matlab Special Session

CSC115: Matlab Special Session. Dr. Zhen Jiang Computer Science Department West Chester University. P399, changing argument order P401, linestyles , markers, and colors P402, label P404, Axes limit P408, multiple plots.

jalena
Download Presentation

CSC115: Matlab Special Session

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. CSC115: Matlab Special Session Dr. Zhen Jiang Computer Science Department West Chester University

  2. P399, changing argument order • P401, linestyles, markers, and colors • P402, label • P404, Axes limit • P408, multiple plots

  3. Display the monthly (12 months) snowfall records for the city that have the longest snow season (most months have snowfall).

  4. Display the monthly (12 months) temperature for the hottest city (one record is enough, no need for the solution for tie) and the coldest city (different curve/line) in one plot graph.

  5. Display the average of temperature, # of sunny days, and # of rainy days in each month (3 curves/lines) in United States in one plot graph.

  6. Display the monthly (12 months) temperature for the hottest city (one record is enough, no need for the solution for tie) in summer (June, July, & August) and the coldest city in winter (December, January, and February) in one plot graph (2 curves).

  7. Display the monthly (12 months) temperature for the top 5 hotest cities that have the average (year) temperature in 50’s (>= 50 and <60) in one plot graph (five curves).

  8. Page 431, Figure 27.4, mesh • Page 432, Figure 27.6, meshz

  9. Page 434, Figure 27.9, surf

  10. What is X? • What is Y? • What is Z?

  11. Make your own X, Y • Determine the corresponding Z

  12. Find the distance from (i, j) to (dx(1), dy(1)), the first city in record. min_d2 = (dx(1)-(i-1+minx))*(dx(1)-(i-1+minx)) + (dy(1)-(j-1+miny))*(dy(1)-(j-1+miny)); • Set the current closest city index => 1st id = 1; • Find the kth city from city2 to the city_num-th city in the record • Check the distance from (i,j) to (dx(k), dy(k)) if it can beat the record min_d2 • If yes, update id=k • update z(j,i) = dz(id);

  13. Page 436, Figure 27.12, nan

  14. Page 437, figure 27.13, surfl

  15. Page 438, figure 27.15, sufnorm

  16. view

  17. Making your picture on slide 12 rotating?

  18. Stem3

  19. Chapter 28, page 461-476

More Related