interference b/w two sine wave error.please please help..
Afficher commentaires plus anciens
x = [0:.1:5];
w=1;
t=2;
lm=233*10^-9;
k=2*pi/lm;
f1=sin(k*x-w*t);
f2=sin(k*x-w*t);
f=f1+f2;
plot(x,f);
There is an output.i dont know this is wrong or right.but the output should be periodic black and white lines.. I tried
onematrix=one(size(f));
om2d=onematrix.*f
imagesc(om2d)
colormap(gray)
but there is an error
??? Error using ==> mtimes
Inner matrix dimensions must agree.
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Denoising and Compression dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!