database

[수학과교육] 착시현상

작성자
cfdkim
작성일
2024-03-17 20:11
조회
63
clear;
figure(1); clf; hold on;
a=13; b=6;
x=[-a a a -a]; y=[-1 -1 b b]; z=[0 0 0 0];
fill3(x,y,z,'b');

x=[0 0 0 0 0]; y=[-1 b b -1 -1]; z=[0 0 5 5 0];
plot3(x,y,z,'k','linewidth',2);

x1=[2 12 12 10 10 12 12 2 2 4 4 2];
y1=[0 0 1 2 3 4 5 5 4 3 2 1];
z1=[1 1 1 1 1 1 1 1 1 1 1 1];
fill3(x1,y1,z1,'g'); fill3(-x1,y1,z1,'g');

x2=[10 12 12 10]; y2=[ 2 1 4 3]; z2=[ 1 0 0 1];
fill3(x2,y2,z2,'g'); fill3(-x2,y2,z2,'g');

x3=[2 4 4 2]; y3=[1 2 3 4]; z3=[0 1 1 0];
fill3(x3,y3,z3,'g'); fill3(-x3,y3,z3,'g');
axis image; view(80,20)
전체 0