Time-averaged moire fringes.

2 vues (au cours des 30 derniers jours)
AKANKSHA SHARMA
AKANKSHA SHARMA le 30 Avr 2021
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');

Réponses (0)

Catégories

En savoir plus sur Encryption / Cryptography dans Help Center et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by