function q=mmhole(x,y,z,xlim,ylim)* r B( S# o( r, |! [
%MMHOLE Create Hole in 3D Graphics Data 6 q7 v& e6 [/ w" i' D( J% Z=MMHOLE(X,Y,Z,Xlim,Ylim) sets the data in Z to NaN) @9 ?/ S2 q& G" w% X3 ]' w2 V) T
% corresponding to the limits in Xlim=[Xmin Xmax] and5 t3 A( E& Y: q2 T9 u7 o9 x
% Ylim=[Ymin Ymax]. If Xlim or Ylim are empty they are& u$ b; R. y3 T
% assumed to be [-inf inf]. 6 V+ [( ? g) C! v4 |% X and Y can be plaid matrices, e.g., created by MESHGRID2 B% W7 w1 l7 j0 c- S$ ?
% or they can be vectors defining the x and y axes. / M5 Y7 ?2 P- a( j8 i+ c%5 i2 c `' ` s& f1 [
% Z=MMHOLE(Z,Clim,Rlim) creates the NaN hole based on the ( ], `# d- X* p, e1 g# b& O% g( P7 K% column index limits in Clim and the row index limits in Rlim {! G/ T9 z- `' I2 C: G, F+ d0 P%, }" E- J) h6 T/ g6 @4 M
% Resulting data can be plotted using mesh or surf: 2 L3 v& c7 X, v6 t: L% MESH(X,Y,Z) or SURF(X,Y,Z)0 {! `0 ^/ N) o/ U5 a
% This function automates the procedure described on' C& j* }4 l7 f: B
% page 249 of "Mastering MATLAB". / t8 P0 A1 P$ z( r, o T' m; R' j0 z, T7 F: I0 I
% D.C. Hanselman, University of Maine, Orono ME, 044697 M. @3 ~/ |' ]3 g
% 9/26/95- H$ `# P5 Q% d
% Copyright (c) 1996 by Prentice-Hall, Inc.( s7 d u7 G* |) @+ X- b3 ]+ j" T( w