interference b/w two sine wave error.please please help..
Show older comments
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.
Accepted Answer
More Answers (0)
Categories
Find more on Denoising and Compression in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!