rtwintgt-setup real time window help image image(a, [x, y, w, h]) image(a, [x, y, w, h], rotation) image(i, [x, y, w, h]) image(i, [x, y, w, h], rotation)
clc x = rand(100,1)*16 - 8; y = rand(100,1)*16 - 8; r = sqrt(x.^2 + y.^2) + eps; z = sin(r)./r; x = rand(100,1)*16 - 8; y = rand(100,1)*16 - 8; r = sqrt(x.^2 + y.^2) + eps; z = sin(r)./r; xlin = linspace(min(x),max(x),33); ylin = linspace(min(y),max(y),33); [X,Y] = meshgrid(xlin,ylin); Z = griddata(x,y,z,X,Y,'cubic'); mesh(X,Y,Z) %interpolated axis tight; hold on plot3(x,y,z,'.','MarkerSize',15) mesh(X,Y,Z,C) %interpolated axis tight; hold on plot3(x,y,z,C,'.','MarkerSize',15) mesh(X,Y,Z) %interpolated axis tight; hold on plot3(x,y,z,'.','MarkerSize',30) mesh(X,Y,Z) %interpolated axis tight; hold on plot3(x,y,z,'.','MarkerSize',45) mesh(X,Y,Z) %interpolated axis tight; hold off plot3(x,y,z,'.','MarkerSize',15) mesh(X,Y,Z) %interpolated axis ; hold on plot3(x,y,z,'.','MarkerSize',15) mesh(X,Y,Z) %interpolated hold on plot3(x,y,z,'.','MarkerSize',15) mesh(X,Y,Z) %interpolated axis tight; hold on plot3(x,y,z,'.','MarkerSize',5) mesh(X,Y,Z) %interpolated axis tight; hold on plot3(x,y,z,'.','MarkerSize',5) theta = pi*(-n:2:n)/n; phi = (pi/2)*(-n:2:n)'/n; X = cos(phi)*cos(theta); Y = cos(phi)*sin(theta); Z = sin(phi)*ones(size(theta)); colormap([0 0 0;1 1 1]) C = hadamard(2^k); surf(X,Y,Z,C) axis square