Author: Not specified Language: matlab
Description: Not specified Timestamp: 2017-10-11 04:51:01 +0000
View raw paste Reply
  1. %Assignment1 PartA
  2.  
  3. %Cyberdyne System
  4. x1 = (-2:0.1:2);
  5. y1 = (-2:0.1:2);
  6. %Umbrella System
  7. x2 = (-10:0.5:10);
  8. y2 = (-10:0.5:10);
  9.  
  10. [x1, y1] = meshgrid(x1,y1);
  11. [x2, y2] = meshgrid(x2,y2);
  12.  
  13. h1 = (1/4).*exp(-(x1.^2+y1.^2))+abs((x1.*sinc(x1.^2)).*(sinc(y1/16)/16));
  14. h2 = (1/10).*exp(-((x2-1).^2)/8)+(1/2).*exp(-((y2-3).^2)/16);
  15.  
  16. mesh(h1)
  17. title('PSF for Cyberdyne CT System');
  18.  
  19. mesh(h2)
  20. title('PSF for Umbrella Corporation CT System');
View raw paste Reply