- close all
- clc
- M=magic(10);
- subplot(5,1,1)
- image(M(1:2,:))
- axis off
- text(0,3,'发动机顶','Rotation',90)
- subplot(5,1,2)
- image(M(3:4,:))
- axis off
- text(0,3,'发动机侧','Rotation',90)
- subplot(5,1,3)
- image(M(5:6,:))
- axis off
- text(0,2,'悬下','Rotation',90)
- subplot(5,1,4)
- image(M(7:8,:))
- axis off
- text(0,2,'悬上','Rotation',90)
- subplot(5,1,5)
- image(M(9:10,:))
- axis off
- % box off
- text(0,3,'传动箱上','Rotation',90)
- text(1,3,'1 2 3 4 5 6 7 8 9 10')
- figure
- subplot(5,1,1)
- image(M(1,:))
- axis off
- text(0,1.5,'发动机顶','Rotation',90)
- subplot(5,1,2)
- image(M(2,:))
- axis off
- text(0,1.5,'发动机侧','Rotation',90)
- subplot(5,1,3)
- image(M(3,:))
- axis off
- text(0,1.25,'悬下','Rotation',90)
- subplot(5,1,4)
- image(M(4,:))
- axis off
- text(0,1.25,'悬上','Rotation',90)
- subplot(5,1,5)
- image(M(5,:))
- axis off
- text(0,1.5,'传动箱上','Rotation',90)
- text(1,1.75,'1 2 3 4 5 6 7 8 9 10')
- figure
- subplot(5,1,1)
- C=ones(2,1)*M(1,:);
- pcolor(C)
- shading interp
- axis off
- text(0,1,'发动机顶','Rotation',45)
- subplot(5,1,2)
- C=ones(2,1)*M(2,:);
- pcolor(C)
- shading interp
- axis off
- text(0,1,'发动机侧','Rotation',45)
- subplot(5,1,3)
- C=ones(2,1)*M(3,:);
- pcolor(C)
- shading interp
- axis off
- text(0,1.25,'悬下','Rotation',45)
- subplot(5,1,4)
- C=ones(2,1)*M(4,:);
- pcolor(C)
- shading interp
- axis off
- text(0,1,'悬上','Rotation',45)
- subplot(5,1,5)
- C=ones(2,1)*M(5,:);
- pcolor(C)
- shading interp
- axis off
- text(0,1,'传动箱上','Rotation',45)
- text(1,0.5,'1 2 3 4 5 6 7 8 9 10')
复制代码
|