comparison scripts/plot/plot3.m @ 7292:5e90111a28b3

[project @ 2007-12-11 18:13:34 by jwe]
author jwe
date Tue, 11 Dec 2007 18:15:06 +0000
parents d65670971cbc
children 3b53b25e2550
comparison
equal deleted inserted replaced
7291:de593fd63ecf 7292:5e90111a28b3
165 else 165 else
166 [x, y] = meshgrid (x, y); 166 [x, y] = meshgrid (x, y);
167 endif 167 endif
168 endif 168 endif
169 169
170 if (! size_equal (x, y) || ! size_equal (x, z)) 170 if (! size_equal (x, y, z))
171 error ("plot3: x, y, and z must have the same shape"); 171 error ("plot3: x, y, and z must have the same shape");
172 endif 172 endif
173 173
174 key = options.key; 174 key = options.key;
175 if (! isempty (key)) 175 if (! isempty (key))
209 else 209 else
210 [x, y] = meshgrid (x, y); 210 [x, y] = meshgrid (x, y);
211 endif 211 endif
212 endif 212 endif
213 213
214 if (! size_equal (x, y) || ! size_equal (x, z)) 214 if (! size_equal (x, y, z))
215 error ("plot3: x, y, and z must have the same shape"); 215 error ("plot3: x, y, and z must have the same shape");
216 endif 216 endif
217 217
218 options = __default_plot_options__ (); 218 options = __default_plot_options__ ();
219 key = options.key; 219 key = options.key;
273 else 273 else
274 [x, y] = meshgrid (x, y); 274 [x, y] = meshgrid (x, y);
275 endif 275 endif
276 endif 276 endif
277 277
278 if (! size_equal (x, y) || ! size_equal (x, z)) 278 if (! size_equal (x, y, z))
279 error ("plot3: x, y, and z must have the same shape"); 279 error ("plot3: x, y, and z must have the same shape");
280 endif 280 endif
281 281
282 options = __default_plot_options__ (); 282 options = __default_plot_options__ ();
283 key = options.key; 283 key = options.key;