Matlab學習手記——Matlab裁剪三維曲面圖

目的:實現三維曲面圖的裁剪,即選擇顯示特定區分。 效果圖:   測試代碼: clear; clc; n = 1000; [x, y, z] = peaks(n); subplot(1, 2, 1) surf(x, y, z); shading interp view(0, 90) for i = 1:n % for j = 1:n % if x(i, j)^2 + 2 *
相關文章
相關標籤/搜索