Time-averaged moire fringes.
조회 수: 2 (최근 30일)
이전 댓글 표시
I'm trying to create time-averaged moire fringes. Please help me out.
%harmonic oscillation
y = linspace(0,5,500);
f = 10*pi*1000; %(lambda= 0.2)
wave = (0.5*sin(f*y));
wave2= imresize(wave, [1 201]);
% zero order bessel function of first kind
z= 0:0.01:2;
J = besselj(0,10*pi*z); %lambda= 0.2
plot(z,J);
subplot(2,2,1);
title('bessel');
%time-averaged moire fringes
moire= 0.5 + 0.5*(wave2 .* J);
onematrix= ones(size(moire));
moire2= (onematrix.*moire);
colormap(gray);
subplot(2,2,2);
imagesc(moire2);
title('final moire');
댓글 수: 0
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Encryption / Cryptography에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!