%% 绘制正方体网格
clc
clear all
for i = 1:10;
for j = 1:10
for k = 1:10
x(k) = k;
y(k) = i;
z(k) = j;
end
plot3(x,y,z);
hold on;
end
end
for i = 1:10
for j = 1:10
for k = 1:10
x(k) = i;
y(k) = j;
z(k) = k;
end
plot3(x,y,z);
hold on;
end
end
for i = 1:10
for j = 1:10
for k = 1:10
x(k) = j;
y(k) = k;
z(k) = i;
end
plot3(x,y,z);
hold on;
end
end
grid on