1 function [ ] = quick_mesh(varargin)
2 %msg = quick_mesh(matrix)
3 % function meshes only a subset of a matrix, for quick handling
8 mesh(matrix(1:5:end,1:5:end));
15 fig_num = varargin{2};
17 mesh(matrix(1:10:end,1:10:end));
25 x = varargin{1}; % x,y = meshgrid
27 z = varargin{3}; % same size as x and y
28 lons = x(1,1:skip:end);
29 lats = y(1:skip:end,1);
30 small_z = z(1:skip:end,1:skip:end);
31 [m,n] = size(small_z);
34 CO(:,:,1) = zeros(m,n); % red
35 CO(:,:,2) = small_z/max(small_z(:));
36 %CO(:,:,2) = ones(m,1).*linspace(0.5,0.6,m); % green
37 %CO(:,:,3) = ones(m,1).*linspace(0,1,m); % blue
38 CO(:,:,3) = small_z/max(small_z(:))/2;
40 %mesh(lons,lats,small_z,CO)
41 mesh(lons,lats,small_z,'FaceAlpha',0.5,'EdgeColor','interp','FaceColor','interp','LineStyle',':')
42 xlabel('Lon (degrees)')
43 ylabel('Lat (degrees)')
46 z_level = [1.7279e+05 1.7279e+05];
47 contour3(lons,lats,small_z,z_level,'k')
49 % xlabel('Lon (degrees)')
50 % ylabel('Lat (degrees)')
56 %msg = 'mesh(matrix(1:10:end,1:10:end))'