# channelflow.org

### Site Tools

gibson:teaching:fall-2014:math445:lecture16-diary

# Differences

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

 gibson:teaching:fall-2014:math445:lecture16-diary [2014/11/18 07:25]gibson [surf, surfc] gibson:teaching:fall-2014:math445:lecture16-diary [2014/11/18 07:25] (current)gibson [surf, surfc] Both sides previous revision Previous revision 2014/11/18 07:25 gibson [surf, surfc] 2014/11/18 07:25 gibson [surf, surfc] 2014/11/18 07:24 gibson 2014/11/18 07:24 gibson 2014/11/18 07:23 gibson 2014/11/18 06:53 gibson created 2014/11/18 07:25 gibson [surf, surfc] 2014/11/18 07:25 gibson [surf, surfc] 2014/11/18 07:24 gibson 2014/11/18 07:24 gibson 2014/11/18 07:23 gibson 2014/11/18 06:53 gibson created Line 118: Line 118: - % quiver plot - % used to show vector fields - load y.asc - load x.asc - load vx.asc - load vy.asc - clf() - quiver(x,​y,​vx,​vy); ​ - axis equal - axis tight - xlabel('​x'​);​ ylabel('​y'​);​ - title('​vector field vx,vy over plane x,y') - - % subplots - % make an array of plots within a figure window - clf() - subplot(2,​2,​1) % 1st subplot in 2 x 2 array - quiver(x,​y,​vx,​vy);​ - axis equal - axis tight - subplot(2,​2,​2) % 2nd subplot in 2 x 2 array - - surfc(X,​Y,​Z,​C);​ axis equal - subplot(2,​2,​3) % 2nd subplot in 2 x 2 array - surf(X,​Y,​Z,​Z);​ axis equal - subplot(2,​2,​4) % 4th - x = linspace(0,​pi,​20);​