User Tools

Site Tools


gibson:teaching:spring-2018:math445:lab10

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
gibson:teaching:spring-2018:math445:lab10 [2018/04/17 06:54]
gibson
gibson:teaching:spring-2018:math445:lab10 [2018/04/17 06:54]
gibson
Line 49: Line 49:
 plot a solid blue square at each live cell. plot a solid blue square at each live cell.
  
-<​code>​+<​code ​matlab>
 [i,j,x] = find(X); [i,j,x] = find(X);
 plot(j,​i,'​bs','​MarkerEdgeColor','​b','​MarkerFaceColor','​b','​MarkerSize',​4);​ plot(j,​i,'​bs','​MarkerEdgeColor','​b','​MarkerFaceColor','​b','​MarkerSize',​4);​
Line 59: Line 59:
 with ''​find''​ and ''​plot''​ once your code is running correctly. with ''​find''​ and ''​plot''​ once your code is running correctly.
  
-<​code>​+<​code ​matlab>
 axis([0.5, n+0.5, 0.5, n+.5]); axis([0.5, n+0.5, 0.5, n+.5]);
 xlabel('​j'​) xlabel('​j'​)
Line 124: Line 124:
 **13.** The following code will kill anything on a certain boundary **13.** The following code will kill anything on a certain boundary
  
-<​code>​+<​code ​matlab>
 X(N,:) = 0; X(N,:) = 0;
 </​code>​ </​code>​
gibson/teaching/spring-2018/math445/lab10.txt ยท Last modified: 2018/04/19 08:11 by gibson