代码搜索结果

找到约 18,795 项符合 X 的代码

stem_plot.m

x = [ 1 2 3 4 5 6]; y = [ 2 6 8 7 8 5]; stem(x,y); title('\bfExample of a Stem Plot'); xlabel('\bf\itx'); ylabel('\bf\ity'); axis([0 7 0 10]);

bar_plot.m

x = [ 1 2 3 4 5 6]; y = [ 2 6 8 7 8 5]; bar(x,y); title('\bfExample of a Bar Plot'); xlabel('\bf\itx'); ylabel('\bf\ity'); axis([0 7 0 10]);

fig6_12b_test_surf.m

[x,y] = meshgrid(-4:0.2:4); z = exp(-0.5*(x.^2+0.5*(x-y).^2)); surf(x,y,z); title('\bfSurface Plot'); xlabel('\bfx'); ylabel('\bfy'); zlabel('\bfz');

test_contour2.m

[x,y] = meshgrid(-4:0.2:4); z = exp(-0.5*(x.^2+0.5*(x-y).^2)); [c,h]=contour(x,y,z); clabel(c,h); title('\bfContour Plot'); xlabel('\bfx'); ylabel('\bfy'); zlabel('\bfz');

fig6_12c_test_contour.m

[x,y] = meshgrid(-4:0.2:4); z = exp(-0.5*(x.^2+0.5*(x-y).^2)); contour(x,y,z); title('\bfContour Plot'); xlabel('\bfx'); ylabel('\bfy'); zlabel('\bfz');

compass_plot.m

x = [ 2 -2 1 3 -1]; y = [ 2 2 -2 1 -3]; compass(x,y); title('\bfExample of a Compass Plot'); grid on

stair_plot.m

x = [ 1 2 3 4 5 6]; y = [ 2 6 8 7 8 5]; stairs(x,y); title('\bfExample of a Stair Plot'); xlabel('\bf\itx'); ylabel('\bf\ity'); axis([0 7 0 10]);

barh_plot.m

x = [ 1 2 3 4 5 6]; y = [ 2 6 8 7 8 5]; barh(x,y); title('\bfExample of a Horizontal Bar Plot'); xlabel('\bf\ity'); ylabel('\bf\itx'); axis([0 10 0 7]);

fig6_12a_test_mesh.m

[x,y] = meshgrid(-4:0.2:4); z = exp(-0.5*(x.^2+0.5*(x-y).^2)); mesh(x,y,z); title('\bfMesh Plot'); xlabel('\bfx'); ylabel('\bfy');

fig2_12.m

x = 0:0.1:10; y = x.^2 - 10.*x + 26; figure(1) subplot(2,2,1) plot(x,y); title ('Linear Plot'); xlabel ('x'); ylabel ('y'); grid on; subplot(2,2,2) semilogx(x,y); title ('Semilog x Plot');